question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled rejection SequelizeConnectionError: Quit inactivity timeout with Node 4.2.1

See original GitHub issue

Here 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:closed
  • Created 8 years ago
  • Comments:27 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
aybmabcommented, Jan 29, 2016

@mansa-dev thanks for the response! I actually fixed it by using the options: {pool: {maxIdleTime: 120000}}

0reactions
sushantdhimancommented, Mar 16, 2016

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 old mysql never worked for me

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found