brainflake / nightcap

1 stars 0 forks source link

Inside Nightcap.prototype.performCheck, this === null (??) #1

Open hookdump opened 11 years ago

hookdump commented 11 years ago

error: Fri May 24 2013 17:41:30 GMT-0400 (EDT) [Error: No valid replicaset instance servers found] error: Fri May 24 2013 17:41:30 GMT-0400 (EDT) 'Uncaught exception: TypeError: Cannot call method \'collection\' of null' Trace: TypeError: Cannot call method 'collection' of null at process. (/MYSERVICE/node_modules/MYSERVICE.lib/log.js:149:11) at process.EventEmitter.emit (events.js:126:20)

/MYSERVICE/node_modules/MYSERVICE.lib/log.js:150 throw e; ^ TypeError: Cannot call method 'collection' of null at Nightcap.performCheck (/MYSERVICE/node_modules/nightcap/lib/nightcap.js:58:8) at _finishConnecting (/MYSERVICE/node_modules/nightcap/node_modules/mongodb/lib/mongodb/mongo_client.js:305:20) at Db.open (/MYSERVICE/node_modules/nightcap/node_modules/mongodb/lib/mongodb/db.js:251:16) at ReplSet.connect (/MYSERVICE/node_modules/nightcap/node_modules/mongodb/lib/mongodb/connection/repl_set/repl_set.js:207:5) at g (events.js:192:14) at EventEmitter.emit (events.js:96:17) at _connectHandler (/MYSERVICE/node_modules/nightcap/node_modules/mongodb/lib/mongodb/connection/repl_set/repl_set.js:411:21) at Server.connect.connectionPool.on.server._serverState (/MYSERVICE/node_modules/nightcap/node_modules/mongodb/lib/mongodb/connection/server.js:613:7) at EventEmitter.emit (events.js:126:20) at connection.on._self._poolState (/MYSERVICE/node_modules/nightcap/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:139:15) Forever detected script exited with code: 1

brainflake commented 11 years ago

i disabled nightcap for now, since search matched messages is not marking documents as processed and original messages is retired. i think the above was an issue connecting to the replica set?