Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Jarrad Henry
    @jhenry9636
    I get the following error
    Error: connect ECONNREFUSED 127.0.0.1:8701
    any help would be appreciated, thanks
    Rômulo Santos
    @romulobr
    Hello, is http://apidocs.loopback.io/ down?
    Justin
    @abigsmall
    Is strong-pm deprecated?
    Javier Pinedo Alonso
    @pinicius_gitlab
    Why occurs this error only when I change the model datasource to mysql (with mysql-connector)
    Error creating Test2 account { ValidationError: The Account instance is not valid. Details: username is invalid (value: "test2"); email is invalid (value: "test2@test.com").
    Javier Pinedo Alonso
    @pinicius_gitlab
    why when I'm using Account.create(...) method with mysql-connector attatched to it, it tries to create new row in "<datasource_name>.Account" table instead of "Account" table that has been created before. Thanks
    Javier Pinedo Alonso
    @pinicius_gitlab
    @pinicius_gitlab my Account model extends of loopback User model
    Aquid Shahwar
    @aquid

    @bajtos I am trying to setup micro-services with loopback and remote connector and there came a scenario where I had to pass the accessToken between various services. I knew that loopback:3 by default support's the options argument and also came across https://github.com/strongloop/strong-remoting/pull/430 PR which says that options: {passAccessToken: true} will allow the connector to pass the token between services.

    Hence, I tried everything and nothing worked, then went to dig out the actual reason why it wasn't working and came across https://github.com/strongloop/strong-remoting/blob/master/lib/rest-adapter.js#L49 line of code, which I believe is culprit. So I made few changes in my setting file and now token are being passed properly.

    Earlier

    "serviceAgreement": {
        "url": "http://localhost:3000/api",
        "name": "xxx",
        "connector": "remote",
        "options": {
            "passAccessToken": true
        }
      }

    Working Solution:

    "serviceAgreement": {
        "url": "http://localhost:3000/api",
        "name": "xxx",
        "connector": "remote",
        "options": {
            "rest": {
            "passAccessToken": true
          }
        }
      }

    Do you think this is a correct workaround? Will this break anything or not?

    cc @pulkitsinghal What is your thoughts on the above issue?
    Pulkit Singhal
    @pulkitsinghal
    @aquid i wouldn't be able to tell you definitively without running the loopback test suite but I'm excited to see all your work!
    Drew Anderson CMW
    @DrewAnderson
    Hi All - first time here
    Daniel Prado
    @danazkari
    Hello! quick question, do any of you happen to have a good example or good documentation about the “Application” built-in model in LB? I can find some bits and pieces here and there but nothing concrete on what the capabilities and limitations of the model are
    for now, I’m just using the codebase to guide myself https://github.com/strongloop/loopback/blob/master/common/models/application.js
    ghazaltaimur13
    @ghazaltaimur13
    hi guys, i need to send a data to two databases / data source. Is this possible? and also run migration in both the databases? My datasource type is mysql
    marwan788
    @marwan788
    'lb' is not recognized as an internal or external command,
    operable program or batch file.
    can anyone help me
    Sean
    @SeanFacer
    @SeanFacer
    Hi,
    Can anyone show me setup / config for model relations and how I can create a model and its relations in one call?
    Posted a query on stackoverflow with my current config https://stackoverflow.com/questions/52090245/loopback-insert-model-and-its-relational-data
    osamasaeed
    @osamasaeed
    Hello eveyone,
    Anyone can help me to understand Loopback Application Model. How can I utilize this model. I am going to develop an application in which as main server api which will authenticate a client api which uses by client dashboard.
    The documentation of Application Model available on loopback/docs are not enough for a beginner.
    Kevin Loh
    @locorocorolling
    Hi all,
    There are probably quite a number of people asked this before,
    but is it possible to do Event Sourcing/CQRS with loopback?
    Scott Brady
    @scottbrady
    I'm curious if there's a roadmap/release plan for strong-cluster-control. In particular I'm wondering if there's an ETA to address this vulnerability strongloop/strong-cluster-control#67
    Scott Brady
    @scottbrady

    Until this is resolved anyone with strong-cluster-control installed will get this report when running npm audit:

    Low Prototype Pollution

    Package lodash

    Patched in >=4.17.5

    Dependency of strong-supervisor

    Path strong-supervisor > strong-cluster-control > lodash

    More info https://nodesecurity.io/advisories/577

    Younes Keraressi
    @herOwOw
    Hello is there a way to emit a event inside a method once from the server when its done, example: 2 users got same value, once one of them update that value the new value is sent directly to all connected users, is there a way to hook into that (from server) in loopback?
    @osamasaeed saha ossam whats your problem exactly?
    Younes Keraressi
    @herOwOw
    @marwan788 try slc loopback
    Younes Keraressi
    @herOwOw
    Hey, i couldnt figured out why this is perma 401 status when trying to get /users from User model?? even when i set an access token?
    Marioandre Pigorini
    @Mpigorini_gitlab
    Hello, anyone here know is loopback 4 provide a auth module predefine ?
    Nick Dunas
    @NickDunas
    @Mpigorini_gitlab I am wondering the same thing!
    Gershon Papi
    @papigers
    Hi guys I'm a bit confused, I want to use strongloop pm, which to my understanding is still supported, but all documentation mentions slc and the global strongloop package which are deprecated, can someone clarify?
    Paul Ehigie
    @ehigiepaul_gitlab
    Good day, i like to know how to create an api route that looks like this "/tv/{id}/season/{id}/episode"
    kosach
    @kosach
    Good day, do someone know how to restart app after changes build:watch - recompile app but I need to restart npm start manually. How can I automate it? I use loopback 4
    Rahul Radhakrishnan
    @rahulrkr08
    @/all Created sample rest service-proxy using loopback 4.
    https://github.com/rahulrkr08/lb4-rest-sample
    Muhammad Ali Shahzad
    @malis90
    @kosach it can be done using gulp + parallelshell
    configure your package.json like
    "dev": "parallelshell \"npm run build:watch\" \"gulp StartServer\"",
    and paste below code in gulpfile and you are good to go
    const { src, series, parallel } = require('gulp');
    const nodemon = require('gulp-nodemon');
    const logger = require('gulp-logger');
    
    function StartServer(cb) {
      nodemon({
        script: './index.js',
        done: cb,
        watch: ['./dist', './index.js']
      })
        .on('readable', function () {
          console.log(process.stdout);
        });
    }
    
    exports.StartServer = StartServer
    Alen Mo
    @sunzhongshan1988_gitlab
    API connect not support lb4?
    quang
    @quangphung91_gitlab
    How to lock a user to find someone in the userID
    quang
    @quangphung91_gitlab
    Hi everyone I am using loopback 3,
    How to use upload image & update data at the same time
    Many Thanks
    Banda17
    @Banda17
    the options [database] is not supported
    the options [connector] is not supported
    the options [provider] is not supported
    the options [debug] is not supported
    the options [url] is not supported
    i have build container and i am getting this warning
    i am litrerallyconfused what to do now ?
    quang
    @quangphung91_gitlab
    Hi everyone, I have a question about change stream. Everyone who has ever done a change stream gives me an example of how to do this.
    bwjohnson-ss
    @bwjohnson-ss
    Anyone else getting a 502 error accessing the docs: https://docs.strongloop.com/display/SLC ?
    Jitesh
    @JiteshShivnani
    @bwjohnson-ss no i can access it
    Can someone suggest an APM for loopback 4 ? We use new relic but doesnt seem to work.
    DimitriEmman
    @DimitriEmman
    hello my loopback 4 authorization doesn't work
    i dont know why.any person can help me?
    mihir83in
    @mihir83in

    Heya Folks, I'm using strong-soap server to host a web service that talks to a downstream rest api. The response I'm getting is not having correct tag name prefix for first element after soap:body,

    I believe the responsible code for this is

    if (descriptor.form === 'unqualified') {
            elementName = name;
            nsContext.pushContext();
            nameSpaceContextCreated = true;
          } else if (descriptor.qname) {
            nsContext.pushContext();
            nameSpaceContextCreated = true;
            // get the mapping for the namespace uri
            let mapping = nsContext.getPrefixMapping(descriptor.qname.nsURI);
            let newlyDeclared = false;
            // if namespace not declared, declare it
            if (mapping === null || mapping.declared === false) {
              newlyDeclared = true;
              mapping = declareNamespace(nsContext, null,
              descriptor.qname.prefix, descriptor.qname.nsURI);
            }
            // add the element to a parent node
            let prefix = mapping ? mapping.prefix : descriptor.qname.prefix;
            elementName = prefix ? prefix + ':' + name : name;
            // if namespace is newly declared add the xmlns attribute
            if (newlyDeclared) {
              xmlns = prefix ? 'xmlns:' + prefix : 'xmlns';
            }
          }

    in this one, my elements descriptor has qname but its prefix is undefined, any ideas ?

    mihir83in
    @mihir83in
    and the name space that comes out by default is ns1
    Ashwanth Madhav
    @kmaswanth_gitlab
    Sometimes there is no response from loopback. The call to API is not connecting.This occurring in both development and production mode.
    ankit-devtool
    @ankit-devtool
    Hi everyone, i was having a problem while hosting loopback 4 code, i want to know how can i host loopback 4 code in GCP.