sidorares / sidorares/node-mysql2
Got warning: Warning: got packets out of order. Expected 14 but received 2
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 680
- Avg merge
- 9h 7m
- Merged PRs (30d)
- 59
Description
When I run the stored procedure query, I always got this message but the data result is correct.
How can I disable the warning message.
here is my example code
let pool = await mysql.createPool({
"host": systemConfig.get("host"),
"user": systemConfig.get("user"),
"password": systemConfig.get("password"),
"database": systemConfig.get("database"),
"connectTimeout": systemConfig.get("connectTimeout"),
"acquireTimeout": systemConfig.get("acquireTimeout"),
"waitForConnections": systemConfig.get("waitForConnections"),
"connectionLimit": systemConfig.get("connectionLimit"),
"queueLimit": systemConfig.get("queueLimit"),
"multipleStatements": systemConfig.get("multipleStatements"),
"charset": systemConfig.get("charset"),
"compress": true,
"Promise":global.Promise
});
let conn = await pool.getConnection();
let res = conn.query("CALL xxx (?,?,?)",['1212','1','fdsfs']);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the stored procedure call through mysql.createPool with compression enabled and the shown connection settings, then inspect how the packet-order warning is surfaced. Determine whether the warning indicates a driver defect or a configuration/protocol issue, and define done as a confirmed cause with an appropriate fix or documented handling and a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, node.js, typescript
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100