[GODRIVER-1027] Unable to connect to mongodb from golang application Created: 08/May/19 Updated: 13/May/19 Resolved: 10/May/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Zoom Tail | Assignee: | Jeffrey Yemin |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Failed to define a client that will connect to Mongo%!(EXTRA *internal.wrappedError=error parsing uri (mongodb+srv://usr:pwd@development-xtumr.mongodb.net/db?retryWrites=true): lookup development-xtumr.mongodb.net on 127.0.0.53:53: cannot unmarshal DNS message |
| Comments |
| Comment by Chris Wakare [ 11/May/19 ] |
|
Hi, OS: macOS Mojave 10.14.1 DNS Servers Error: Type: Unknown, State: Connected, Average RTT: 0, Last error: (CommandNotFound) command not found MongoDB Information Had downloaded the latest mongodb go driver using the command |
| Comment by Jeffrey Yemin [ 10/May/19 ] |
|
Given you're on 1.12 we do still suspect this is a duplicate of |
| Comment by Zoom Tail [ 10/May/19 ] |
|
Hi,
My current go version is go1.12.1 linux/amd64. The content of /etc/resolv.conf file in my aws' instance is nameserver 127.0.0.53 |
| Comment by Jeffrey Yemin [ 09/May/19 ] |
|
Please let us know what version of Go you are using. We suspect this is the same as |
| Comment by miguel pragier [ 08/May/19 ] |
|
Similar problem here, since yesterday (mai/07) when we updated ( go get / git pull ) mongo driver.
CONNECTIONSTRING: "mongodb+srv://password@cluster0-hostxyz.mongodb.net/databasename?retryWrites=true"
ROW: if errx := client.Ping(context.TODO(), readpref.Primary()); errx != nil {
ERROR: panic: server selection error: server selection timeout
|