-
Type: New Feature
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.2.0
-
Component/s: None
-
Environment:Node v4.3, mongodb@2.2.0, connecting to a Mongo 3.0 database
-
Empty show more show less
I recently upgraded to mongodb npm module version 2.2.0 (from 2.1.21) and now get "no valid replicaset members found" when trying to connect a Mongo 3.0 database.
Repro steps:
$ npm install mongodb@2.2.0
$ node
> var MongoClient = require('mongodb').MongoClient
> MongoClient.connect('mongodb://appuser:<redacted>@candidate.2.mongolayer.com:10411,candidate.3.mongolayer.com:10649/app?replicaSet=set-56be39f36887897ebf0037db', (err, db) =>
)
false
Same test with 2.1.21 - it works:
$ npm install mongodb@2.1.21
$ node
> var MongoClient = require('mongodb').MongoClient
> MongoClient.connect('mongodb://appuser:<redacted>@candidate.2.mongolayer.com:10411,candidate.3.mongolayer.com:10649/app?replicaSet=set-56be39f36887897ebf0037db', (err, db) =>
)
null true
I couldn't find documentation on if there were API changes in 2.2.0?
- is related to
-
NODE-719 Connection leaking and authentication issues
- Closed