dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

Rethrow non-MySQL errors #814

Closed akshaykumar12527 closed 6 years ago

akshaykumar12527 commented 6 years ago

Can you please look into this i getting this error

/root/project_name/node_modules/mysql/lib/protocol/Parser.js:80 throw err; // Rethrow non-MySQL errors ^

TypeError: cb is not a function at Query._callback (/root/project_name/node_modules/orm/lib/Drivers/DML/mysql.js:238:14) at Query.Sequence.end (/root/api.oyestar.com/node_modules/mysql/lib/protocol/sequences/Sequence.js:88:24) at Query.ErrorPacket (/root/api.oyestar.com/node_modules/mysql/lib/protocol/sequences/Query.js:90:8) at Protocol._parsePacket (/root/api.oyestar.com/node_modules/mysql/lib/protocol/Protocol.js:279:23) at Parser.write (/root/project_name/node_modules/mysql/lib/protocol/Parser.js:76:12) at Protocol.write (/root/project_name/node_modules/mysql/lib/protocol/Protocol.js:39:16) at Socket. (/root/project_name/node_modules/mysql/lib/Connection.js:103:28) at emitOne (events.js:115:13) at Socket.emit (events.js:210:7) at addChunk (_stream_readable.js:266:12) at readableAddChunk (_stream_readable.js:253:11) at Socket.Readable.push (_stream_readable.js:211:10) at TCP.onread (net.js:587:20)

dxg commented 6 years ago

There is not enough information here to investigate. It sounds like code somewhere didn't provide a callback.