joshfire/chessathome — Issue #50: server crash
Author: sylvinus
Created: 2011-10-18 14:02:48+00:00
State: open

1318946429614 'Fetched computing games : ' 1
1318946429682 'Fetching unresolved pos for game' 4e8dc6af85b793867c0003ad

/home/deploy/app/source/www/master/engines/distributed-mongo.js:179
models.Position.count({resolved:false,fen:{$in:_.keys(pos.children)}},
^
TypeError: Object.keys called on non-object
at Function.keys (native)
at Promise. (/home/deploy/app/source/www/master/engines/distributed-mongo.js:179:58)
at Promise. (/home/deploy/app/source/node_modules/mongoose/lib/promise.js:120:8)
at Promise. (events.js:64:17)
at Promise.emit (/home/deploy/app/source/node_modules/mongoose/lib/promise.js:59:38)
at Promise.complete (/home/deploy/app/source/node_modules/mongoose/lib/promise.js:70:20)
at /home/deploy/app/source/node_modules/mongoose/lib/query.js:856:15
at model. (/home/deploy/app/source/node_modules/mongoose/lib/document.js:163:5)
at model.init (/home/deploy/app/source/node_modules/mongoose/lib/model.js:161:36)
at /home/deploy/app/source/node_modules/mongoose/lib/query.js:854:12
^C