antoniogarrote/rdfstore-js — Issue #22: Cannot connect to MongoDB Backend with Auth
Author: drobbins
Created: 2012-03-08 15:11:34+00:00
State: open

I'm unable to connect to a MongoDB backend using a username/password, provided in the [standard Mongo URL format](http://www.mongodb.org/display/DOCS/Connections). The following error shows up:

````
Attempting to create store...

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property 'arbiterOnly' of undefined
at /Users/robbinsd/Dropbox/Repos/rdfstorenode/node_modules/rdfstore/node_modules/mongodb/lib/mongodb/connection/server.js:552:22
at [object Object].checkoutReader (/Users/robbinsd/Dropbox/Repos/rdfstorenode/node_modules/rdfstore/node_modules/mongodb/lib/mongodb/connection/server.js:569:16)
at /Users/robbinsd/Dropbox/Repos/rdfstorenode/node_modules/rdfstore/node_modules/mongodb/lib/mongodb/db.js:1249:79
at Db._executeQueryCommand (/Users/robbinsd/Dropbox/Repos/rdfstorenode/node_modules/rdfstore/node_modules/mongodb/lib/mongodb/db.js:1456:5)
at Cursor.nextObject (/Users/robbinsd/Dropbox/Repos/rdfstorenode/node_modules/rdfstore/node_modules/mongodb/lib/mongodb/cursor.js:446:13)
at Array.0 (/Users/robbinsd/Dropbox/Repos/rdfstorenode/node_modules/rdfstore/node_modules/mongodb/lib/mongodb/cursor.js:164:12)
at EventEmitter._tickCallback (node.js:192:40)
````

See this gist for my source code: https://gist.github.com/2001409