sidorares / mysql-pg-proxy

mysql to postgres proxy server
36 stars 5 forks source link

"Warning: got packets out of order" #2

Open unquietwiki opened 5 years ago

unquietwiki commented 5 years ago
==============
Warning: got packets out of order. Expected 3 but received 0
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: Connection lost: The server closed the connection.
    at Socket.<anonymous> (/opt/mysql-pg-proxy/node_modules/mysql2/lib/connection.js:100:35)
    at emitNone (events.js:111:20)
    at Socket.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
skull-squadron commented 5 months ago

(Some years hence)

It's an old PoC and the error handling is very bad, so it's not worth further effort.

$ mysql -h 127.0.0.1 -P 3307 --ssl-mode=DISABLED
Welcome to the MySQL monitor.  Commands end with ; or \g.
Warning: got packets out of order. Expected 3 but received 0

help
;
^C^\Aborted
Warning: got packets out of order. Expected 4 but received 0
node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: Connection lost: The server closed the connection.
    at Socket.<anonymous> ({{redacted}}/node_modules/mysql-pg-proxy/node_modules/mysql2/lib/connection.js:117:31)
    at Socket.emit (node:events:519:28)
    at TCP.<anonymous> (node:net:337:12)
Emitted 'error' event on Connection instance at:
    at Connection._notifyError ({{redacted}}/node_modules/mysql-pg-proxy/node_modules/mysql2/lib/connection.js:252:12)
    at Socket.<anonymous> ({{redacted}}/node_modules/mysql-pg-proxy/node_modules/mysql2/lib/connection.js:123:12)
    at Socket.emit (node:events:519:28)
    at TCP.<anonymous> (node:net:337:12) {
  fatal: true,
  code: 'PROTOCOL_CONNECTION_LOST'
}

Environment