My Node application recently started returning the following error when connecting to the database. It has connected successfully for over 2 years up until now, and I have not changed the connection code or the user credentials.
connection error: { [MongoError: auth failed] name: 'MongoError', ok: 0, errmsg: 'auth failed', code: 18 }Here is my connection code:
var db = mongoose.createConnection(' mongodb://admin:<adminpassword>@ds063869.mongolab.com:63869/<dbname>'); I'm using mongoose 3.8.4, mongo 3.0.6 and node 0.10.33. I didn't see anyone else with this problem, so if anyone has ideas I'd really appreciate it. Thanks!
Thanks for the reply. I was on 3.0.6, just updated to 3.0.7 and am getting the same issue. Like Santosh, I am still able to access through shell.