[GODRIVER-1561] Mongodb Atlas Failed to connect with Golang Created: 08/Apr/20 Updated: 14/Apr/20 Resolved: 14/Apr/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Connections |
| Affects Version/s: | 1.3.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | ali hassan | Assignee: | Divjot Arora (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Golang Aplication |
||
| Description |
|
I'm using GO1.14 and then connect mongodb atlas cluster to my application. Add mango drivers install go get command then add mongo client pass my mongocluster as a string then run application but it failed error parsing uri lookup cluster:127.0.0.53:53 unmarshal dns message
|
| Comments |
| Comment by Divjot Arora (Inactive) [ 14/Apr/20 ] |
|
Hi alideveloper95@protonmail.com, This seems to be related to Go language change https://github.com/golang/go/issues/10622. There is some conversation on https://github.com/golang/go/issues/37362 about this and that issue links to https://github.com/golang/go/issues/36718, which mentions reverting the change from #10622 in the future. If you are using Docker, it seems like the user in #37362 stopped seeing this issue after including the root CA certs in the final step of the Docker image build, so that might be something to try. Besides that, the only guidance we can provide here is to use a different DNS server or use a non-SRV URI. I'm going to close out this ticket because I don't think there's any work for us to do here, but feel free to leave another comment if you have any other questions. – Divjot |