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
MongoError: Authentication failed #4587
Comments
Also, I have checked - bug is not reproduced in |
Do your username and password include any non alphanumeric characters? Similar issues have surfaced in the past with handling characters like : in passwords |
Also, what version of mongoose and mongodb? |
Mongodb 'v3' |
Hmm also what database is the user defined on? MongoDB users are scoped to dbs, even if they have cross-db privileges, so if the user you have isn't defined on Also, if you're on mongodb 3.x, you might be using SCRAM-SHA-1 auth or not. Try both of the below:
|
@vkarpov15, Yes, it helped! Thank you very much! |
i tryed it , but not work, mongoose v4.5.3 errMsg: |
just add
|
Thank you sir. :3 good answer |
I have mongodb in mongolab.
If I connect to it by command
it is ok.
If I use mongoose and connect by
I have error
I use mongoose
4.6.1
The text was updated successfully, but these errors were encountered: