Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongo url parser fails #30

Closed
MemoryChips opened this issue Dec 23, 2018 · 2 comments
Closed

mongo url parser fails #30

MemoryChips opened this issue Dec 23, 2018 · 2 comments
Assignees

Comments

@MemoryChips
Copy link
Contributor

MemoryChips commented Dec 23, 2018

When I try to use a mongo url of the form

mongodb+srv://<USER>:<PASSWORD>@<MY_ATLAS_CONNECTION>/test?retryWrites=true

the url parser fails and returns a url object of null. The above format is what mongo Atlas uses to connect to their mongo servers. This error crashes the server. The error occurs whether I escape the characters in the url or not. I am able to connect using my url in my other programs.

{
  "name": "mongo",
  "connector": "mongodb",
  "url": "mongodb+srv://<USER>:<PASSWORD>@<MY_ATLAS_CONNECTION>/test?retryWrites=true",
  "database": "test",
  "useNewUrlParser": true
}

Please fix this or verify that your url parser works correctly.

@dhmlau
Copy link
Member

dhmlau commented Feb 15, 2019

@MemoryChips, I believe this is related to this on-going PR: loopbackio/loopback-connector-mongodb#497.

If it is, can we close this issue as the duplicate of loopbackio/loopback-connector-mongodb#496? Thanks.

@dhmlau dhmlau self-assigned this Feb 15, 2019
@dhmlau
Copy link
Member

dhmlau commented Apr 22, 2019

@MemoryChips, we've landed the community PR for adding support for mongodb+srv. See PR
loopbackio/loopback-connector-mongodb#497
As a result, I'm going to close this issue as resolved. Thanks.

@dhmlau dhmlau closed this as completed Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants