ltonetwork / mongodb-rest

JSON REST server for MongoDB (using node.js)
MIT License
405 stars 143 forks source link

Cannot call method 'collection' of null #1

Closed subpop closed 14 years ago

subpop commented 14 years ago

I'm trying to connect mongodb-rest to a 1.6.1 version of MongoDB. When I try to get my collection, node crashes with:

    db.collection(parameters['collection'], function(err, collection) {
 ^
TypeError: Cannot call method 'collection' of null
at lib/mongodb_rest.js:172:6
subpop commented 14 years ago

Node version 0.1.104

tdegrunt commented 14 years ago

Woops, was still running with 1.4.2 here. Updated the native driver and seems to work again. Let me know if it works for you, thanks for reporting!

subpop commented 14 years ago

woohoo! fastest response ever.