joyent/node — Issue #1867: TypeError: Cannot call method 'getRequestId' of null
Author: varunpal
Created: 2011-10-12 07:54:29+00:00
State: open

Hi,
I am running a mongoDb server on an amazon ec2 ubuntu instance.
I am accessing this mongoDb server through a node.js application
running on a separate amazon ec2 ubuntu instance.
My node.js application crashes randomly for different create and
update operations on MongoDb. These operations work normally most of
the time but the application crashes after any random time interval
for any of these create or update queries on MongoDb.
The error log is as follows -:
TypeError: Cannot call method 'getRequestId' of null
at [object Object].executeCommand (/home/ubuntu/node_modules/mongodb/
lib/mongodb/db.js:757:48)
at Collection.update(/home/ubuntu/node_modules/mongodb/lib/mongodb/
lib/mongodb/collection.js:421:26)
What am i missing here ?

Thanks.