-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.0.31, 2.0.33
-
Component/s: None
-
Environment:> db.version() >> 2.4.11
-
Empty show more show less
> npm list mongodb >> mongodb@2.0.31
/////// sample program uses insertOne operation with write ack disabled
> node
> var command = function(err, db) {
var writeOptions =
;
db.collection('test').insertOne(
, writeOptions, function(err, r)
{ if(err) console.log('%j',err.stack); });
db.close();
};
> var MongoClient = require('mongodb').MongoClient;
> MongoClient.connect('mongodb://', command);
>> TypeError: Cannot read property 'result' of null
at \node_modules\mongodb\lib\collection.js:348:24
at handleCallback (\node_modules\mongodb\lib\utils.js:95:12)
at \node_modules\mongodb\lib\collection.js:496:31
at \node_modules\mongodb\node_modules\mongodb-core\lib\topologies\replset.js:371:5
at bound (domain.js:254:14)
at runBound (domain.js:267:12)
at executeUnordered (\node_modules\mongodb\node_modules\mongodb-core\lib\wireprotocol\2_4_su
pport.js:510:5)
at LegacySupport.insert (\node_modules\mongodb\node_modules\mongodb-core\lib\wireprotocol\2_
4_support.js:41:12)
at Server.insert (\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:9
05:37)
at executeWriteOperation (\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\rep
lset.js:367:13)