[GODRIVER-1207] InsertOne returns (NotMaster) not master when connect using "connect=direct" Created: 26/Jul/19 Updated: 11/Sep/19 Resolved: 30/Jul/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | CRUD |
| Affects Version/s: | 1.0.4 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | bimo adi | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
AKS |
||
| Description |
|
I deploy MongoDB replicaset with single endpoint. Want to test connection using simple code to write but write failed by returns '(NotMaster) not master' when i tried to connect to MongoDB using URI "mongodb://serverIP:27017/admin?connect=direct" ``` id := cursor.InsertedID ``` Did i miss something? |
| Comments |
| Comment by Esha Bhargava [ 30/Jul/19 ] |
|
avbee.lab@gmail.com Thanks for your report. Please note that this project is for reporting bugs or feature suggestions for the driver. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group.
|