node-mysql icon indicating copy to clipboard operation
node-mysql copied to clipboard

Uncaught, "unspecfied" error event running simple test; other errors

Open Supergeek opened this issue 15 years ago • 2 comments

Running the simplest connection test under the latest version of node-mysql (masuidrive-node-mysql-9a75066) using node 0.1.92 installed on top of 0.1.33. I'm receiving the following error:

Error: Uncaught, unspecfied 'error' event. at [object Object].emit (events:13:15) at [object Object].emitError (/home/gondola/nodescripts/lib/mysql/node-promise.js:66:15) at [object Object].write (/home/gondola/nodescripts/lib/mysql/connection.js:145:10) at [object Object]. (/home/gondola/nodescripts/lib/mysql/protocol.js:153:12) at /home/gondola/nodescripts/lib/mysql/utils.js:2:36 at EventEmitter._tickCallback (node.js:60:5) at node.js:164:9

Running the node test.real_mysql.js gives me an error as well:

$ node test.real_mysql.js Success: createConnection Error: ENOTCONN, Transport endpoint is not connected at Stream._shutdown (net:865:22) at Stream.flush (net:662:12) at Stream.end (net:892:12) at [object Object].close (/home/gondola/nodescripts/masuidrive-node-mysql-9a75066/lib/mysql/node-socket.js:58:29) at [object Object].close (/home/gondola/nodescripts/masuidrive-node-mysql-9a75066/lib/mysql/connection.js:43:17) at [object Object]. (/home/gondola/nodescripts/masuidrive-node-mysql-9a75066/lib/mysql/protocol.js:57:16) at /home/gondola/nodescripts/masuidrive-node-mysql-9a75066/lib/mysql/utils.js:2:36 at EventEmitter._tickCallback (node.js:60:5) at node.js:164:9

Server is CentOS 5.3 64 bit.

Supergeek avatar Apr 27 '10 16:04 Supergeek

I am getting this same error with a vanilla nodejs 0.1.92 installation on CentOS 5.2 32-bit Final.

EDIT: If I output the JSON value of "this._values" in lib/mysql/node-promise.js in the exports.Promise.prototype.emitError function right before "this.emit.apply" is called, I get this output before the uncaught error is shown:

[{"message":"invalid packet: sequence number mismatch(3 != 1(expected))"}] [{"message":"invalid packet: sequence number mismatch(3 != 1(expected))"}] [{"message":"invalid packet: sequence number mismatch(3 != 1(expected))"}] [{"message":"Error: Stream is not writable"}]

mscdex avatar Apr 28 '10 18:04 mscdex

Well, I have the same problem. Using masuidrive-node-mysql-9a75066 with node 0.2.3 (2010.10.02 node-v0.2.3) and a MySQL 5.0.22.

what should I try to do? :)

NKjoep avatar Oct 13 '10 16:10 NKjoep