Skip to content

createCollection throws cannot call method 'getRequestId' of null #13

Closed
c4milo opened this Issue Sep 26, 2011 · 0 comments

2 participants

@c4milo
c4milo commented Sep 26, 2011

I'm testing mongoskin to move away from mongoose and I'm running this example from the docs:

db.createCollection("test", function(err, collection){
//console.log(collection.insert);
collection.insert({"test":"value"});
});

it's giving me:

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot call method 'getRequestId' of null
at [object Object].executeCommand (/Users/camilo/Dropbox/Development/buglabs/playground/mongoskin/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/db.js:757:48)
at Collection.insertAll (/Users/camilo/Dropbox/Development/buglabs/playground/mongoskin/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/collection.js:312:26)
at Collection.insert (/Users/camilo/Dropbox/Development/buglabs/playground/mongoskin/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/collection.js:110:8)
at /Users/camilo/Dropbox/Development/buglabs/playground/mongoskin/test.js:22:16
at /Users/camilo/Dropbox/Development/buglabs/playground/mongoskin/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/db.js:402:14
at /Users/camilo/Dropbox/Development/buglabs/playground/mongoskin/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/db.js:156:7
at /Users/camilo/Dropbox/Development/buglabs/playground/mongoskin/node_modules/mongoskin/no

any ideas?

@guileen guileen closed this in ad746c9 Mar 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.