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

Can not connect to MongoDB database #15

Closed
jyksnw opened this issue Mar 1, 2017 · 0 comments · Fixed by #16
Closed

Can not connect to MongoDB database #15

jyksnw opened this issue Mar 1, 2017 · 0 comments · Fixed by #16

Comments

@jyksnw
Copy link
Contributor

jyksnw commented Mar 1, 2017

When attempting to connect to mongodb database the following error is observed:

ERRO[0000] Can't connect to server': Unable to connect to URL (127.0.0.1:27017), server returned error on SASL authentication step: Invalid database name: '/admin'

It appears that the connection is not stripping the leading '/'

When dropping the database from the connection string it defaults to mgo's default database of test.

martinrusev added a commit that referenced this issue Mar 2, 2017
Fix #15 - Fix for not escaping leading database '/'
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

Successfully merging a pull request may close this issue.

1 participant