Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 16:43
    uniconstructor edited #4126
  • Jan 31 2019 16:41
    uniconstructor edited #4126
  • Jan 31 2019 16:41
    uniconstructor opened #4126
  • Jan 31 2019 03:44
    dzungh0ang closed #4123
  • Jan 30 2019 00:25
    techaks closed #4125
  • Jan 30 2019 00:02
    techaks edited #4125
  • Jan 30 2019 00:01
    techaks opened #4125
  • Jan 29 2019 23:33
    jkpulido opened #4124
  • Jan 29 2019 13:32
    nabdelgadir closed #4114
  • Jan 29 2019 09:17

    bajtos on add-node10

    (compare)

  • Jan 29 2019 07:13
    dzungh0ang opened #4123
  • Jan 29 2019 04:25
    dhmlau closed #3881
  • Jan 28 2019 13:14
    bajtos edited #4119
  • Jan 28 2019 12:47
    bajtos labeled #4121
  • Jan 28 2019 12:46
    bajtos labeled #4118
  • Jan 28 2019 12:46
    bajtos labeled #4118
  • Jan 28 2019 12:46
    bajtos labeled #4118
  • Jan 28 2019 12:46
    bajtos assigned #4118
  • Jan 25 2019 19:50
    dhmlau closed #3906
  • Jan 25 2019 19:13
    mschnee synchronize #4119
arun.jayapal
@deostroll
what middleware is responsible for that...? And how do I put my middleware before it?
arun.jayapal
@deostroll
Okay. never mind. I found the answer.
Mohammad Quadri
@quadrixm
Is there any example for using Email Datasource for sending email in lb4
sumit shivaji sale
@sumitsale
has any one implement mongodb audit log in lp4?
any one backing memory leak with lb4 update?
WShyamKatti
@WShyamKatti
Hello Community
I posted a question related to an issue I am facing with postgres connector here: https://groups.google.com/g/loopbackjs/c/vY3ykgBgH3Q/m/MIb3Gqq3AAAJ. Can I assume the community is fairly active to get a response ? Just trying to figure this thing out asap.
Chinh Le
@dangchinh2501_gitlab
can anyone using loopback 3 can help me? I use the cli command "lb model" to create a new model for my app, after that, it affects significantly other file and some of the remote method of other models disappear
srinath talari
@srinathtr_twitter
Hello Community,
Can we change the title of loopback/rest-explorer template index.html.ejs page ( currently it is LoopBack API Explorer)
please advice. Thanks in advance
Yongcheol Choi
@cycorld
Hello,
Can I use template engine (like jade, pug, haml) for loopback 4?
https://loopback.io/pages/en/lb4/readmes/loopback-example-relations.html#configure-server-side-views
Mohammad Quadri
@quadrixm
Hi,
What would be the best way to implement rabbit mq in loopback 4 or bull js
Chiranjeev Sharma
@c45_gitlab
Is it possible to provide md5-sess encryption for creating Authorization digest header while processing a WSDL API method using strong-soap library ?
Library Ref: https://github.com/strongloop/strong-soap
Pawan Tejwani
@thedeterminedsoul
Hi All
Can anyone please point me to working example of loopback 4 websockets with redis or any other cache ?
Thank you :)
alaa almasri
@alaaalmasri12
hello guys im new to loopback if some can help me find resources to learn
give me some tips i worked with express
sumitkhuranaMTX
@sumitkhuranaMTX
Hi All
Do we have any way to filter on the child relation and get all the records for that criteria in Loopback 4
We need to find the listing and pagination on it, its very urgent and we are struck and not sure how loopback 4 supports it
Eduardo Mazzucchelli
@emazzu
Yanni Zhang
@yannizhang2019
Hi, All, how do I report a potential security issue on LoopBack? I tried sending email to reachsl@us.ibm.com according to https://loopback.io/doc/en/contrib/Reporting-issues.html#security-issues, but the email account seems not working as I got a bounce back.
Ayman Ali
@aymanaus
My loopback3 project crashes when it can not connect to postgress. How can I handle errors globally and write the message to datadog without crashing
Rifa Achrinza
@achrinza
Hi everyone, gentle reminder that Slack is the recommended platform for the community and Gitter is not actively checked by the maintainers. A link can be found on https://loopback.io navbar. strongloop/loopback-next#5048 also documents this shift to Slack.
alaa almasri
@alaaalmasri12
any help???
Ivan
@van0k13
Hi huys!
Trying to implement CSP header to app. I'm setting the CSP in sequence.ts file but it creates the csp only for /api level. Can't find how to implement for the root level "/". Can you guys recommend any article or just tell how to do it on root level ? Thanks!
asdubey91
@asdubey91
Hi Raymond.I am using lb3. Do we have access of request body in custom pre-processing middleware?
Rifa Achrinza
@achrinza

Have a question about LoopBack? Please read this!

Hi everyone, gentle reminder that Slack is the recommended platform for the community and Gitter is not actively monitored by the maintainers. A link can be found on https://loopback.io navbar and strongloop/loopback-next#5048.
sondos alayyan
@sondoshassan

Hi
I am using loopback 4 for backend and react for front end.
when I make a request on API, it gives me blocked Cors.

I tried this :
let config = {
mode: 'cors',
cache: 'no-cache',
credentials: 'same-origin',
headers: {
'Access-Control-Allow-Origin': '*',
'Content-Type': 'application/json',
},
redirect: 'follow',
referrerPolicy: 'no-referrer',
}
const response = await axios.post(${API}/signUppatient, obj, config);
but it didn't work

Eduardo Mazzucchelli
@emazzu

hi, people, in some api rest, can I send and array and update more than entity ???
Example !!!

[
{"afeNumber": "3456-564",
"analysisPeriod": 36,
"d": 4164},
{"afeNumber": "3456-564",
"analysisPeriod": 36,
"id": 4164}
]

1 reply
Eduardo Mazzucchelli
@emazzu
is working this gitter ??? or the question I wound do for other way ???
Mesi Rendón
@mesirendon
Hi everyone. I have a quiestion. I'm using a datasource that I successfully could connect to my rest service.The thing is that I need to use a POST endpoint that expects a multipart/form-data. But I don't know how to pass the Buffer I have in memory to send to my endpoint
Here is the config for my datasource:
const config = {
  name: 'ipfs',
  connector: 'rest',
  baseURL: 'http://localhost:5001/api/v0/',
  crud: false,
  operations: [
    {
      template: {
        method: 'POST',
        url: 'http://localhost:5001/api/v0/add',
        headers: {
          'content-type': 'multipart/form-data;'
        },
        query: {
          'only-hash': true,
        },
        form: {
          file: '{file}',
        },
      },
      functions: {
        getCID: ['file'],
      },
    },
    {
      template: {
        method: 'POST',
        url: 'http://localhost:5001/api/v0/bootstrap/list',
      },
      functions: {
        getPeers: [],
      },
    },
  ],
};
Mesi Rendón
@mesirendon
Here's how I'm defining the interface:
export interface Ipfs {
  getCID(file: Buffer): Promise<CID>,
  getPeers(): Promise<unknown>
}
Mesi Rendón
@mesirendon
This was a nightmare, just to let you know guys.... I've ended installing axios and creating a local service. But I'm still wondering how to do it using the loopback-connector-rest module
Rifa Achrinza
@achrinza

Have a question about LoopBack? Please read this!

Hi everyone, gentle reminder that Slack is the recommended platform for the community and Gitter is not actively monitored by the maintainers. A link can be found on https://loopback.io navbar and strongloop/loopback-next#5048.
Tejash JL
@tejash-jl
Any suggestions on using Javascript for LoopBack4?
SUCI
@telefonosuci
Hi, i came from an lb3 application, there I have a view folders with some .pug templates. Can I migrate them also to my new lb4 app ? How can i define a route that renders a template instead of a json response ?
Henrik Holst
@hholst80
We migrated from lb2 to lb3 this summer and just realized that a long standing bug was caused by the upgrade. We have had a customer using the array of object functionality and apparently we need to enable allowArray in an option somewhere. However, I have not found where this option should be inserted. In the model json description I assume, but where?
Fabio Carpinato
@fbcarpinato
Hi guys, i've just created a new lb4 app and added a user model to it, by the time I try to run the migrate command nothing happens, I am using a MySQL db, what could be the issue?
Rifa Achrinza
@achrinza

Have a question about LoopBack? Please read this!

Hi everyone, gentle reminder that Slack is the recommended platform for the community and Gitter is not actively monitored by the maintainers. A link can be found on https://loopback.io navbar and strongloop/loopback-next#5048.
ktorrez
@ktorrez

Hello everyone, does anyone know how I can query REST API of a relation of many to many models:

model 1: users: {
iduser,
.......
}
model 2: conversation: {
idconversation,
......
}
model 3:
usersConversation: {
id
iduser,
idconversation
}

Dishant Rathi
@dishantr16
Request POST /files failed with status code 500. ResolutionError: The key 'services.FileUpload' is not bound to any value in context RequestContext-otWWxEc2SkiZZPwYchmTow-11 (context: RequestContext-otWWxEc2SkiZZPwYchmTow-11, binding: services.FileUpload, resolutionPath: controllers.ImagedetailController --> @ImagedetailController.constructor[0])
Hello Everyone, Can anyone here knows what this error means??
Rifa Achrinza
@achrinza

Have a question about LoopBack? Please read this!

Hi everyone, gentle reminder that Slack is the recommended platform for the community and Gitter is not actively monitored by the maintainers. A link can be found on https://loopback.io navbar and strongloop/loopback-next#5048.
REDSUNBOT
@phamios
Screen Shot 2021-02-22 at 4.49.13 PM.png
hi everyone. I create a services base on strongloop. But i got the error when start services ( I connect mysql )
anyone can help me ?
Rifa Achrinza
@achrinza

GitHub Discussions Enabled :tada:

To help encourage and foster an open community, the GitHub Discussions tab has been enabled. Engage in Q&As, Idea Proposals, or showcase your extensions and projects using LB4.

GitHub Discussions will work alongside Slack to help increase community reach and interaction, and both are actively monitored by the LoopBack 4 Maintainers.

See you there!

GitHub Discussions: https://github.com/strongloop/loopback-next/discussions/7155

Slack: https://loopback.io navbar or strongloop/loopback-next#5048.

Eduardo Mazzucchelli
@emazzu

Hi people, Anybody knows what could be the problem with loopback 4.

image.png

otmi
@otmi:matrix.org
[m]

Hey Guys, slowly I'm getting frustrated, maybe you can help me out. My problem might be more of a TypeScript problem than a lb4 problem, but maybe you ran into this too.

I built a controller to download a file, like described here: https://loopback.io/doc/en/lb4/File-upload-download.html

Thus I'm injecting the response into my function. Now I'm trying to write a unit test for the controller and am trying to create a stubInstance for the response object which is expected by the function with sinon, but Typescript is not capable of create a stub for an interface. (Type 'SinonStubbedInstance<Response>' is missing the following properties from type 'Response<any, Record<string, any>>': sendStatus, links, send, jsonp, and 77 more.)

Long story short: Any ideas how to unit-test a controller with a injected response object?