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

Switch to mongo client to support mongo 3.x #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lukywong
Copy link

@lukywong lukywong commented Jan 24, 2018

When i try to use a mongo version 3.6 with auth to run the fixtures, and error comes out, so i just switch to MongoClient to connect followed mongodb instructions

Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. 
Please authenticate using MongoClient.connect with auth credentials.
{ MongoError: Authentication failed.
    at Function.MongoError.create (~/xxx/node_modules/mongodb-core/lib/error.js:31:11)
    at ~/xxx/node_modules/mongodb-core/lib/connection/pool.js:497:72
    at authenticateStragglers (~/xxx/node_modules/mongodb-core/lib/connection/pool.js:443:16)
    at Connection.messageHandler (~/xxx/node_modules/mongodb-core/lib/connection/pool.js:477:5)
    at Socket.<anonymous> (~/xxx/node_modules/mongodb-core/lib/connection/connection.js:333:22)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
  name: 'MongoError',
  message: 'Authentication failed.',
  ok: 0,
  errmsg: 'Authentication failed.',
  code: 18,
  codeName: 'AuthenticationFailed' }

@Narven
Copy link

Narven commented May 2, 2018

Is this going to be review accepted? any plans on this?

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 this pull request may close these issues.

2 participants