-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Go Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Detailed steps to reproduce the problem?
- Use Client.BulkWrite to do an insert.
- Repeat that operation so that it causes a dupe-key error.
- fmt.Printf("%v", mongo.ErrorCodes(bulkErr))
OBSERVE: No error codes are printed.
EXPECTED: Should see a dupe-key error.
Definition of done: what must be done to consider the task complete?
The above should work as it does with WriteException and BulkWriteException.
The exact Go version used, with patch level:
1.25.7
The exact version of the Go driver used:
2.5.0
Describe how MongoDB is set up. Local vs Hosted, version, topology, load balanced, etc.
n/a
The operating system and version (e.g. Windows 7, OSX 10.8, ...)
macOS
Security Vulnerabilities
n/a
- related to
-
GODRIVER-3690 Support checking server error codes for arbitrary errors in the stable API
-
- Closed
-