-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.2.3
-
Component/s: Core
-
Environment:Node v10.13.0, no Mongoose
-
Empty show more show less
I get the following error while calling cursor.hasNext() method:
(node:16012) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'high_' of null at Long.equals (c:\Data\node\logio-promo-pricing\node_modules\mongodb-core\node_modules\bson\lib\bson\long.js:236:31) at nextFunction (c:\Data\node\logio-promo-pricing\node_modules\mongodb-core\lib\cursor.js:466:16) at Cursor.next (c:\Data\node\logio-promo-pricing\node_modules\mongodb-core\lib\cursor.js:766:3) at Cursor._next (c:\Data\node\logio-promo-pricing\node_modules\mongodb\lib\cursor.js:216:36) at nextObject (c:\Data\node\logio-promo-pricing\node_modules\mongodb\lib\operations\cursor_ops.js:192:10) at hasNext (c:\Data\node\logio-promo-pricing\node_modules\mongodb\lib\operations\cursor_ops.js:135:3) at c:\Data\node\logio-promo-pricing\node_modules\mongodb\lib\utils.js:433:24 at new Promise (<anonymous>) at executeOperation (c:\Data\node\logio-promo-pricing\node_modules\mongodb\lib\utils.js:428:10) at Cursor.hasNext (c:\Data\node\logio-promo-pricing\node_modules\mongodb\lib\cursor.js:245:10)
This error isn't thrown on every call of this method. I wasn't able to find any pattern when it is thrown. I have a suspicion it can be on repeated call of hasNext() but I'm not sure.
db.isMaster():
{ "ismaster" : true, "maxBsonObjectSize" : 16777216, "maxMessageSizeBytes" : 48000000, "maxWriteBatchSize" : 100000, "localTime" : ISODate("2019-04-09T10:11:36.757Z"), "logicalSessionTimeoutMinutes" : 30, "minWireVersion" : 0, "maxWireVersion" : 7, "readOnly" : false, "ok" : 1.0 }