keser
keser

Reputation: 2642

mLab throws Authentication error code 18

I am trying to use mLab on my node.js server. My mongoDB shell version is v3.6.2, mongod version of the database is 3.4.11 (MMAPv1) and using mac os high sierra. I am using my database user's username and password

name: 'MongoError',
message: 'Authentication failed.',
ok: 0,
errmsg: 'Authentication failed.',
code: 18,
codeName: 'AuthenticationFailed' 

Upvotes: 0

Views: 435

Answers (1)

keser
keser

Reputation: 2642

While authenticating, use 'username' and 'password' not <username> and <password>. Get rid of '<' and '>'

Upvotes: 1

Related Questions