Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Encoding not recognized: 'undefined' #3338

Open
White-Bear1122 opened this issue Jan 22, 2025 · 0 comments
Open

Error: Encoding not recognized: 'undefined' #3338

White-Bear1122 opened this issue Jan 22, 2025 · 0 comments

Comments

@White-Bear1122
Copy link

When using the MySQL node in Node-RED, which depends on mysql2, to insert data into a table that has triggers after insert and update operations, the charsetNumber property in the connection pool becomes undefined after completing this operation.

Jan 10:25:14 - [red] Uncaught Exception:
Jan 10:25:14 - [error] Error: Encoding not recognized: 'undefined' (searched as: 'undefined')
at Object.getCodec (C:\Users\86157.node-red\node_modules\iconv-lite\lib\index.js:104:23)
at Object.getEncoder (C:\Users\86157.node-red\node_modules\iconv-lite\lib\index.js:115:23)
at exports.encode (C:\Users\86157.node-red\node_modules\mysql2\lib\parsers\string.js:23:25)
at Packet.writeNullTerminatedString (C:\Users\86157.node-red\node_modules\mysql2\lib\packets\packet.js:757:30)
at HandshakeResponse.serializeResponse (C:\Users\86157.node-red\node_modules\mysql2\lib\packets\handshake_response.js:49:12)
at HandshakeResponse.toPacket (C:\Users\86157.node-red\node_modules\mysql2\lib\packets\handshake_response.js:99:20) at ClientHandshake.sendCredentials (C:\Users\86157.node-red\node_modules\mysql2\lib\commands\client_handshake.js:64:46)
at ClientHandshake.handshakeInit (C:\Users\86157.node-red\node_modules\mysql2\lib\commands\client_handshake.js:137:12)
at ClientHandshake.execute (C:\Users\86157.node-red\node_modules\mysql2\lib\commands\command.js:39:22)
at PoolConnection.handlePacket (C:\Users\86157.node-red\node_modules\mysql2\lib\connection.js:425:32)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants