socketcluster icon indicating copy to clipboard operation
socketcluster copied to clipboard

Getting error invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is [{"base64":true,"data":"VsWHAZWlq7w7zDEn"}]

Open rohittailor opened this issue 6 years ago • 0 comments

Getting following error after running application: 1527160551492 - Origin: Worker (PID 24814) [Error] Error: invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is [{"base64":true,"data":"VsWHAZWlq7w7zDEn"}] at ObjectID.toHexString (/apps/node_app/hendrix_notification/node_modules/mongojs/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/objectid.js:93:11) at ObjectID.toJSON (/apps/node_app/hendrix_notification/node_modules/mongojs/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/objectid.js:208:15) at Object.stringify (native) at Object.module.exports.stringify (/apps/node_app/hendrix_notification/node_modules/socketcluster/node_modules/sc-formatter/index.js:77:15) at EventEmitter.self.write (/apps/node_app/hendrix_notification/node_modules/socketcluster/node_modules/sc-broker-cluster/node_modules/sc-broker/node_modules/ncom/index.js:78:23) at EventEmitter.self._exec (/apps/node_app/hendrix_notification/node_modules/socketcluster/node_modules/sc-broker-cluster/node_modules/sc-broker/index.js:253:20) at EventEmitter.self.publish (/apps/node_app/hendrix_notification/node_modules/socketcluster/node_modules/sc-broker-cluster/node_modules/sc-broker/index.js:357:10) at EventEmitter.self.(anonymous function) [as publish] (/apps/node_app/hendrix_notification/node_modules/socketcluster/node_modules/sc-broker-cluster/clientcluster.js:106:49) at EventEmitter.Client.publish (/apps/node_app/hendrix_notification/node_modules/socketcluster/node_modules/sc-broker-cluster/index.js:551:30) at EventEmitter.Exchange.publish (/apps/node_app/hendrix_notification/node_modules/socketcluster/node_modules/sc-broker-cluster/index.js:187:25) Tried a lot to resolve this but no clue, please help Due to above error, worker is getting reswapened

rohittailor avatar May 24 '18 11:05 rohittailor