-
Notifications
You must be signed in to change notification settings - Fork 12
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
connecting to replicaSet with username and password #13
Comments
This should work ok. I use it as follows: var mongoUrls = [
'user:[email protected]:32234/dbname',
'user:[email protected]:17655/dbname'
];
yield Robe.connect(mongoUrls, {
timeout: 3000
}); |
I also can't authenticate. Even using
|
Currently working on Robe v2, which will have updated dependencies. Once that's out this issue might be fixed. |
Just released v2 with updated dependencies. Hopefully this works now. |
I still can't connect, don't throw exception and returns an invalid connection. `"use strict"; var Robe = require('robe'); try{ mainDB = Robe.connect(['user:pass@server/database']); } catch (err) { console.log(mainDB);` console.log returns the following: Promise { |
Robe.connect(['user:pass@server/database'])
.then((db) => {
// db is instance of database
}); |
Thanks! |
Now I`m trying to do a oplog tailing, but this error is thrown "not authorized for query on local.oplog.rs". Using the same user with another tool, every thing works fine and I can query the oplog collection. Have any idea of what could be happening? The user has a read role on the local database. `"use strict"; var co = require('co'); co(function*() { var db = yield Robe.connect(['user:pass@server/database']);
}) |
I can't figure out how to authenticate on a replicaSet with username and password.
Even looked at the source code and couldn't figure out. Isn't it even supported?
Thanks,
Stefano Tondo
The text was updated successfully, but these errors were encountered: