{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/4784","repository_url":"https://api.github.com/repos/Automattic/mongoose","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/4784/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/4784/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/4784/events","html_url":"https://github.com/Automattic/mongoose/issues/4784","id":194077418,"number":4784,"title":"Mongoose Replica Connection String Not working when trying to connect","user":{"login":"shreejibawa","id":8849256,"avatar_url":"https://avatars.githubusercontent.com/u/8849256?v=3","gravatar_id":"","url":"https://api.github.com/users/shreejibawa","html_url":"https://github.com/shreejibawa","followers_url":"https://api.github.com/users/shreejibawa/followers","following_url":"https://api.github.com/users/shreejibawa/following{/other_user}","gists_url":"https://api.github.com/users/shreejibawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shreejibawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shreejibawa/subscriptions","organizations_url":"https://api.github.com/users/shreejibawa/orgs","repos_url":"https://api.github.com/users/shreejibawa/repos","events_url":"https://api.github.com/users/shreejibawa/events{/privacy}","received_events_url":"https://api.github.com/users/shreejibawa/received_events","type":"User","site_admin":false},"labels":[{"id":335758689,"url":"https://api.github.com/repos/Automattic/mongoose/labels/needs%20clarification","name":"needs clarification","color":"EB219B","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-07T15:20:05Z","updated_at":"2016-12-16T18:05:22Z","closed_at":null,"body":"Mongoose v4.3.4.\r\n\r\nI am trying to connect to AWS MongoDB instances and its not even attempting to connect:\r\n\r\nThis is the connection URI format I am using:\r\n\r\n`mongodb://<usr>:<pwd>@host:port,host2:port2/db`\r\n\r\nAnd this is the code I am using to connect.\r\n\r\n```javascript\r\nvar mongoose = require('mongoose');\r\nvar dbOptions = { server: { socketOptions: { keepAlive: 300000, connectTimeoutMS: 30000 } }, \r\n            replset: { socketOptions: { keepAlive: 300000, connectTimeoutMS : 30000 } } };\r\n\r\nmongoose.connect(uri, dbOptions);\r\n\r\n```\r\n\r\nI am not getting anything in error callback either. I also added logs for possible events.. none of the events are firing. If I remove host2:port2 it works. So issue seems to be with the connection string. But connection string looks totally fine.. but still its not working.\r\n\r\nAm I missing anything?"},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/267657672","html_url":"https://github.com/Automattic/mongoose/issues/4784#issuecomment-267657672","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/4784","id":267657672,"user":{"login":"vkarpov15","id":1620265,"avatar_url":"https://avatars.githubusercontent.com/u/1620265?v=3","gravatar_id":"","url":"https://api.github.com/users/vkarpov15","html_url":"https://github.com/vkarpov15","followers_url":"https://api.github.com/users/vkarpov15/followers","following_url":"https://api.github.com/users/vkarpov15/following{/other_user}","gists_url":"https://api.github.com/users/vkarpov15/gists{/gist_id}","starred_url":"https://api.github.com/users/vkarpov15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkarpov15/subscriptions","organizations_url":"https://api.github.com/users/vkarpov15/orgs","repos_url":"https://api.github.com/users/vkarpov15/repos","events_url":"https://api.github.com/users/vkarpov15/events{/privacy}","received_events_url":"https://api.github.com/users/vkarpov15/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T18:05:22Z","updated_at":"2016-12-16T18:05:22Z","body":"Weird. Can you connect using the node.js driver or the mongodb shell?"}}
{"actor":{"display_login":"vkarpov15"}}