You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit:
I realized that I only tested using Bun, I decided to test it with Node now
Edit2: Tested with Node, got "same error"
2024-10-15 13:53:54.250 | {"level":50,"time":1729011234249,"pid":89,"hostname":"d8316eea0257","err":{"type":"Error","message":"read ECONNRESET","stack":"Error: read ECONNRESET\n at PromisePool.query (/app/node_modules/mysql2/promise.js:356:22)\n at MySql2PreparedQuery.execute (/app/node_modules/src/mysql2/session.ts:121:31)\n at MySqlSelectBase.execute (/app/node_modules/src/mysql-core/query-builders/select.ts:961:25)\n at MySqlSelectBase.then (/app/node_modules/src/query-promise.ts:31:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","code":"ECONNRESET","errno":-104},"msg":"read ECONNRESET"}
The text was updated successfully, but these errors were encountered:
Yes, I can try, but it will take a while, I need to update the code and leave it running in production for a "real" test. This problem takes some time to happen, I haven't been able to find a logic yet, but that's it, I'll try without Drizzle.
@wellwelwel I didn't make the change, I found this #2599 and I did make this change #2599 (comment) maxIdle: 0 and did work, for two days without any errors, It may not be the best approach but works :).
I keep getting this error often, sometimes occurs many times, sometimes not...
These are some logs
Happens in any query, so is not related to the query itself, I tried many config in the connection, this is the connection code.
I always used pool connection, didn't try the direct connection.
So, is this a bug? I think probably is something about the Docker environment, maybe? This is my docker stack
Can this be related to Drizzle? Maybe Bun?
Thanks for any help.
Environment
bun: v1.1.27
mysql2: v3.11.3
Edit:
I realized that I only tested using Bun, I decided to test it with Node now
Edit2: Tested with Node, got "same error"
The text was updated successfully, but these errors were encountered: