[GODRIVER-1236] Get mLab Client Authentication Fails Created: 15/Aug/19 Updated: 27/Oct/23 Resolved: 16/Aug/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | 1.1.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Shishir Jakati | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Mac OSX |
||
| Description |
|
Connecting to a client works fine:
In this case I am able to get a client with no error, and connect with no error using the `client.Connect(ctx)` method.
The problem comes when I attempt to do a simple count operation:
In this case, I get the error:
I am sure that the user/pass used in the URI are correct, as I used the same text when connecting with the Mongo shell (on the shell I do not get any unauthorized errors). |
| Comments |
| Comment by Shishir Jakati [ 15/Aug/19 ] |
|
@Kristofer Brandow,
Sorry for opening an issue. Was user error. Name of the database was incorrect. |
| Comment by Kristofer Brandow (Inactive) [ 15/Aug/19 ] |
|
Hi shishir.jakati98@gmail.com, I used the exact example that you provided and received no errors. Are you using the 1.1.0 version of the driver and what version of Go are you using? --Kris |