{"action":"created","issue":{"url":"https://api.github.com/repos/mongo-express/mongo-express/issues/272","repository_url":"https://api.github.com/repos/mongo-express/mongo-express","labels_url":"https://api.github.com/repos/mongo-express/mongo-express/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/mongo-express/mongo-express/issues/272/comments","events_url":"https://api.github.com/repos/mongo-express/mongo-express/issues/272/events","html_url":"https://github.com/mongo-express/mongo-express/issues/272","id":183583295,"number":272,"title":"Can't connect to replica set","user":{"login":"jamrizzi","id":6234038,"avatar_url":"https://avatars.githubusercontent.com/u/6234038?v=3","gravatar_id":"","url":"https://api.github.com/users/jamrizzi","html_url":"https://github.com/jamrizzi","followers_url":"https://api.github.com/users/jamrizzi/followers","following_url":"https://api.github.com/users/jamrizzi/following{/other_user}","gists_url":"https://api.github.com/users/jamrizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/jamrizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamrizzi/subscriptions","organizations_url":"https://api.github.com/users/jamrizzi/orgs","repos_url":"https://api.github.com/users/jamrizzi/repos","events_url":"https://api.github.com/users/jamrizzi/events{/privacy}","received_events_url":"https://api.github.com/users/jamrizzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-18T03:43:36Z","updated_at":"2016-10-18T18:32:26Z","closed_at":null,"body":"I get the following error when I try and start mongo-express.\r\n\r\n```\r\n/home/jamrizzi/GroupThreads/mongui/node_modules/mongodb/lib/replset.js:360\r\n          process.nextTick(function() { throw err; })\r\n                                        ^\r\nMongoError: no valid replicaset members found\r\n    at Timeout.<anonymous> (/home/jamrizzi/GroupThreads/mongui/node_modules/mongodb-core/lib/topologies/replset.js:645:33)\r\n    at tryOnTimeout (timers.js:232:11)\r\n    at Timer.listOnTimeout (timers.js:202:5)\r\n```\r\n\r\nI have it configured as a replica set, and I have verified that all the information I entered is correct by trying it with the mongodb CLI.  Below is the way I have it configured.\r\n\r\n```\r\n  mongo = {\r\n    db:       'admin',\r\n    host:     [\r\n        'rest-api-data-shard-00-00-xemv3.mongodb.net',\r\n        'rest-api-data-shard-00-01-xemv3.mongodb.net',\r\n        'rest-api-data-shard-00-02-xemv3.mongodb.net'\r\n    ],\r\n    password: 'myspecialpassword',\r\n    port:     27017,\r\n    ssl:      true,\r\n    url:      'mongodb://rest-api-data-shard-00-00-xemv3.mongodb.net:27017,rest-api-data-shard-00-01-xemv3.mongodb.net:27017,rest-api-data-shard-00-02-xemv3.mongodb.net:27017/admin?replicaSet=rest-api-data-shard-0',\r\n    username: 'myspecialusername'\r\n  };\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/mongo-express/mongo-express/issues/comments/254597897","html_url":"https://github.com/mongo-express/mongo-express/issues/272#issuecomment-254597897","issue_url":"https://api.github.com/repos/mongo-express/mongo-express/issues/272","id":254597897,"user":{"login":"dozoisch","id":4422516,"avatar_url":"https://avatars.githubusercontent.com/u/4422516?v=3","gravatar_id":"","url":"https://api.github.com/users/dozoisch","html_url":"https://github.com/dozoisch","followers_url":"https://api.github.com/users/dozoisch/followers","following_url":"https://api.github.com/users/dozoisch/following{/other_user}","gists_url":"https://api.github.com/users/dozoisch/gists{/gist_id}","starred_url":"https://api.github.com/users/dozoisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dozoisch/subscriptions","organizations_url":"https://api.github.com/users/dozoisch/orgs","repos_url":"https://api.github.com/users/dozoisch/repos","events_url":"https://api.github.com/users/dozoisch/events{/privacy}","received_events_url":"https://api.github.com/users/dozoisch/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T18:32:26Z","updated_at":"2016-10-18T18:32:26Z","body":"Hmmm, that's weird because that's the mongodb driver directly. Do you know what parameters in your case you would need to pass to the driver to be able to connect. If you were to use the driver natively? \r\n\r\nSorry for the back and forth, but I have a replicaSet set up on my servers and I can connect to it using an array in mongo-express just fine. So I'm trying to figure out why it doesn't work for yours."}}
{"actor":{"display_login":"dozoisch"}}