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

Warning: got packets out of order. Expected 2 but received 0 (on close() ) #3021

Open
infusion opened this issue Sep 7, 2024 · 1 comment

Comments

@infusion
Copy link

infusion commented Sep 7, 2024

I saw quite a few tickets concerning this error here already, but none are reporting it for a connection close. I updated a setup using Percona server and mysql2, which worked perfectly well for years but can't say where this error is coming from now. The problem arises only when all queries were sent and a final await conn.close() is sent. No pooling is used here, just a simple

db = await mysql.createConnection()
await db.query(query)
await db.close() // where the error occurs

Here are the versions used:

  • MySQL version: 8.0.37-29 (Percona Server)
  • Ubuntu: 20.04.6 LTS
  • node v20.17.0
  • mysql2 3.11.0
@wellwelwel
Copy link
Sponsor Collaborator

Hi, @infusion 🙋🏻‍♂️

I quickly checked https://docs.percona.com/percona-server/8.0/quickstart-docker.html. Could you share a local reproduction?

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