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

Replicaset change in 1.3.20-alpha? #130

Open
scriby opened this issue Feb 26, 2014 · 1 comment
Open

Replicaset change in 1.3.20-alpha? #130

scriby opened this issue Feb 26, 2014 · 1 comment

Comments

@scriby
Copy link

scriby commented Feb 26, 2014

I'm getting the following error when attempting to connect to a replicaset under 1.3.20-alpha:

Error: URL must be in the format mongodb://user:pass@host:port/dbname
    at Error (<anonymous>)
    at exports.parse (.../node_modules/monq/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/url_parser.js:15:11)
    at Function.MongoClient.connect (.../node_modules/monq/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/mongo_client.js:167:16)
    at SkinClass.SkinDb._open (.../node_modules/monq/node_modules/mongoskin/lib/db.js:36:25)
    at SkinClass.open (.../node_modules/monq/node_modules/mongoskin/lib/utils.js:127:14)
    at SkinClass.SkinCollection._open (.../node_modules/monq/node_modules/mongoskin/lib/collection.js:27:17)
    at SkinClass.open (../node_modules/monq/node_modules/mongoskin/lib/utils.js:127:14)
    at SkinClass.(anonymous function) [as ensureIndex] (.../node_modules/monq/node_modules/mongoskin/lib/utils.js:83:14)

I'm not using the connection string, but rather passing in the replica servers in a json object.

@guileen
Copy link
Member

guileen commented Feb 27, 2014

How do you connect to the database, paste your code here.

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

No branches or pull requests

2 participants