-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.2.16
-
Component/s: BSON
-
Environment:Nodejs 6.9.1
-
Empty show more show less
On node driver version 2.2.16 and 2.2.17 there is a bug when you try to serialize an ObjectID.
For some reason, when you try to print an ObjectID to console the `console.log` method calls the toString method of ObjectID with a number. This number represents the recursion number of the internals of the console.log buffer. As a result, ObjectID tries to serialize the id using a wrong encoding name.
This is breaking all my projects because being able to output to console is quite important.
This was not happening on version 2.1.10, I didn not tested versions in between (2.2.11, 2.2.12, etc)
Regards