Hello I'm currently having problems connecting to a managed replica set hosted on Mongolab. Executing (for example) a count query on a Mongo::DB instance obtained via:
Mongo::MongoClient.from_uri(ENV['MONGOLAB_URI']).db['collection_name'] I get the following unauthorized message:
Mongo::OperationFailure: Database command 'count' failed: (assertion: 'unauthorized db:xxx ns:xxx.collection lock type:0 client:xxx'; assertionCode: '10057'; errmsg: 'db assertion failure'; ok: '0.0').
This also occurs when I attempt to connect to (and query) Mongolab's test replication nodes here: http://mongolab.org/flip-flop/
...using the MONGODB_URI mongodb://testdbuser:email@example.com:53117,flop.mongolab.com:54117/testdb
Also Mongoid is able to read and write to the replica set above as well.
Am I missing something fairly obvious here?
Thank you, Whitney