Error: Could not determine packet, firstByte = 101

68 views
Skip to first unread message

j1g5

unread,
Jul 15, 2016, 9:41:50 AM7/15/16
to node-mysql

Encountering this sporadically for a select query I run

/path/to/src/node_modules/mysql/lib/protocol/Parser.js:78
        throw err; // Rethrow non-MySQL errors
        ^

Error: Could not determine packet, firstByte = 101
    at Protocol._determinePacket (/path/to/src/node_modules/mysql/lib/protocol/Protocol.js:322:9)
    at Protocol._parsePacket (/path/to/src/node_modules/mysql/lib/protocol/Protocol.js:244:25)
    at Parser.write (/path/to/src/node_modules/mysql/lib/protocol/Parser.js:74:12)
    at Protocol.write (/path/to/src/node_modules/mysql/lib/protocol/Protocol.js:39:16)
    at Socket.<anonymous> (/path/to/src/node_modules/mysql/lib/Connection.js:109:28)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:153:18)
    at Socket.Readable.push (_stream_readable.js:111:10)
    at TCP.onread (net.js:536:20)


pls advice

thanks you

j1g5

unread,
Jul 16, 2016, 12:01:52 AM7/16/16
to node-mysql
Forgot to give more relevant info - I'm using https://www.npmjs.com/package/mysql

Felix Geisendörfer

unread,
Jul 16, 2016, 8:21:24 AM7/16/16
to node-...@googlegroups.com
Interesting. Is this MySQL or MariaDB?

--
You received this message because you are subscribed to the Google Groups "node-mysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-mysql+...@googlegroups.com.
To post to this group, send email to node-...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-mysql.
For more options, visit https://groups.google.com/d/optout.

j1g5

unread,
Jul 16, 2016, 10:58:55 AM7/16/16
to node-mysql, fe...@felixge.de
MySQL

j1g5

unread,
Jul 19, 2016, 4:53:05 AM7/19/16
to node-mysql, fe...@felixge.de
I realized I wasn't closing the db connection after getting query results, started doing that and now no errors. My bad
Reply all
Reply to author
Forward
0 new messages