{"action":"opened","issue":{"url":"https://api.github.com/repos/globalsign/mgo/issues/168","repository_url":"https://api.github.com/repos/globalsign/mgo","labels_url":"https://api.github.com/repos/globalsign/mgo/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/globalsign/mgo/issues/168/comments","events_url":"https://api.github.com/repos/globalsign/mgo/issues/168/events","html_url":"https://github.com/globalsign/mgo/issues/168","id":324279485,"number":168,"title":"mgo.ParseURL function and retry requests","user":{"login":"tkallioras","id":11908520,"avatar_url":"https://avatars0.githubusercontent.com/u/11908520?v=4","gravatar_id":"","url":"https://api.github.com/users/tkallioras","html_url":"https://github.com/tkallioras","followers_url":"https://api.github.com/users/tkallioras/followers","following_url":"https://api.github.com/users/tkallioras/following{/other_user}","gists_url":"https://api.github.com/users/tkallioras/gists{/gist_id}","starred_url":"https://api.github.com/users/tkallioras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkallioras/subscriptions","organizations_url":"https://api.github.com/users/tkallioras/orgs","repos_url":"https://api.github.com/users/tkallioras/repos","events_url":"https://api.github.com/users/tkallioras/events{/privacy}","received_events_url":"https://api.github.com/users/tkallioras/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-18T05:55:16Z","updated_at":"2018-05-18T05:55:16Z","closed_at":null,"author_association":"NONE","body":"I created a Atlas MongoDB cluster for testing purposes. \r\nThe option that appears on the site is this:\r\n\r\n![screen shot 2018-05-18 at 08 32 29](https://user-images.githubusercontent.com/11908520/40217650-8a44a8aa-5a76-11e8-8b59-29d1a8f61214.png)\r\n\r\nThe format of the given string is:\r\n\r\n`mongodb://<USERNAME>:<PASSWORD>@<SERVER_NAME>:27017,<SERVER_NAME>:27017,<SERVER_NAME>:27017/test?ssl=true&replicaSet=Main-shard-0&authSource=admin&retryWrites=true`\r\n\r\nwhich is according to the specs:\r\n\r\n`mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]`\r\n\r\nThe string in this form however cannot be parsed by the `mgo.ParseURL` function. I checked the issue with the ssl option (https://stackoverflow.com/a/42522753/4772647), but I still had an issue. It only worked when I removed the database name and every option (ssl, retry writes etc)\r\n\r\nI have a couple of questions if someone could answer:\r\n\r\n1. **If the driver in its current version supports retryable writes** (https://docs.mongodb.com/manual/core/retryable-writes/) \r\n2. **If it is planned to support both the new option in the Connection Options** (`retryWrites`) **and the new URI format** (`mongodb+srv://server.example.com/`) (https://docs.mongodb.com/manual/reference/connection-string/#dns-seedlist-connection-format)\r\n\r\nThank you in advance!"}}
{"actor":{"display_login":"tkallioras"}}