Unhandled rejection SequelizeConnectionError: Quit inactivity timeout with Node 4.2.1
See original GitHub issueHere is the whole error trace:
Unhandled rejection SequelizeConnectionError: Quit inactivity timeout
at Quit._callback (/Users/holdings/Apps/opticon/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:104:30)
at Quit.Sequence.end (/Users/holdings/Apps/opticon/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
at /Users/holdings/Apps/opticon/node_modules/mysql/lib/protocol/Protocol.js:393:18
at Array.forEach (native)
at /Users/holdings/Apps/opticon/node_modules/mysql/lib/protocol/Protocol.js:392:13
at doNTCallback0 (node.js:417:9)
at process._tickCallback (node.js:346:13)
And node --version renders: v4.2.1
I am on Heroku trying to connect to a ClearDB. And here is my instantiation:
db = new Sequelize(config.mysql.database, config.mysql.username, config.mysql.password, {
host: config.mysql.host,
dialect: config.mysql.dialect,
dialectOptions: {
timeout: 30
},
pool: {
max: 5,
min: 0,
idle: 30000
},
});
Issue Analytics
- State:
- Created 8 years ago
- Comments:27 (4 by maintainers)
Top Results From Across the Web
Error: Handshake inactivity timeout in Node.js MYSQL module
Ok, the timeout comes from the Protocol.js file line:162. If you checkout node-mysql you'll see that it is a variable "timeout" for queries....
Read more >Error: Quit inactivity timeout - Amazon Developer Forums
The issue I am facing is that I am already on NodeJS 6.10, I am already using the callback pattern, and when I...
Read more >Error: Handshake inactivity timeout in Node.js MYSQL module
MySQL : Error: Handshake inactivity timeout in Node.js MYSQL module [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
Read more >AWS: API gateway 502 error randomly with Runtime ...
I am using AWS and have an api which is called via API gateway which calls a node.js lambda function. Very often but...
Read more >MySQL - ThinkJS
In some Node.js version(like 4.2.0), connect Mysql will throw this error: Error: Handshake inactivity timeout at Handshake.sequence.on.on.on.on.on.self.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mansa-dev thanks for the response! I actually fixed it by using the options: {pool: {maxIdleTime: 120000}}
Last week I did deployed my code with
mysql: 2.10
and it worked for me as well. One point to note that I was always using pools but oldmysql
never worked for me