Skip to content

Instantly share code, notes, and snippets.

@JamesHusband
Created November 27, 2019 11:34
Show Gist options
  • Save JamesHusband/8c018c4affdeff91d42b2025e29fffd3 to your computer and use it in GitHub Desktop.
Save JamesHusband/8c018c4affdeff91d42b2025e29fffd3 to your computer and use it in GitHub Desktop.
SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:3306
at Promise.tap.then.catch.err (/tmp/app/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:123:19)
From previous event:
at ConnectionManager.connect (/tmp/app/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:120:13)
at sequelize.runHooks.then (/tmp/app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:311:50)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:126:23)
From previous event:
at ConnectionManager._connect (/tmp/app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:311:8)
at ConnectionManager.getConnection (/tmp/app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:247:46)
at Promise.try (/tmp/app/node_modules/sequelize/lib/sequelize.js:640:36)
From previous event:
at Promise.resolve.retry (/tmp/app/node_modules/sequelize/lib/sequelize.js:631:53)
at /tmp/app/node_modules/retry-as-promised/index.js:70:21
at new Promise (<anonymous>)
at retryAsPromised (/tmp/app/node_modules/retry-as-promised/index.js:60:10)
at Promise.try (/tmp/app/node_modules/sequelize/lib/sequelize.js:631:30)
From previous event:
at Sequelize.query (/tmp/app/node_modules/sequelize/lib/sequelize.js:580:23)
at QueryInterface.rawSelect (/tmp/app/node_modules/sequelize/lib/query-interface.js:1163:27)
at Function.aggregate (/tmp/app/node_modules/sequelize/lib/model.js:1993:32)
at Promise.try.then (/tmp/app/node_modules/sequelize/lib/model.js:2045:19)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:126:23)
From previous event:
at Function.count (/tmp/app/node_modules/sequelize/lib/model.js:2029:8)
at Function.filterAndCount (/tmp/app/src/database/models/Offer.ts:254:12)
at routes.get.async_middleware_1.wrap (/tmp/app/src/routes/offers.ts:110:23)
at /tmp/app/node_modules/async-middleware/src/index.ts:33:20
at Layer.handle [as handle_request] (/tmp/app/node_modules/express/lib/router/layer.js:95:5)
at next (/tmp/app/node_modules/express/lib/router/route.js:137:13)
at /tmp/app/src/middleware/validate-request.ts:25:3
at Layer.handle [as handle_request] (/tmp/app/node_modules/express/lib/router/layer.js:95:5)
at next (/tmp/app/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/tmp/app/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/tmp/app/node_modules/express/lib/router/layer.js:95:5)
at /tmp/app/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/tmp/app/node_modules/express/lib/router/index.js:335:12)
at next (/tmp/app/node_modules/express/lib/router/index.js:275:10)
at Function.handle (/tmp/app/node_modules/express/lib/router/index.js:174:3)
at router (/tmp/app/node_modules/express/lib/router/index.js:47:12)
at Layer.handle [as handle_request] (/tmp/app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/tmp/app/node_modules/express/lib/router/index.js:317:13)
at /tmp/app/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/tmp/app/node_modules/express/lib/router/index.js:335:12)
at next (/tmp/app/node_modules/express/lib/router/index.js:275:10)
at Function.handle (/tmp/app/node_modules/express/lib/router/index.js:174:3)
at router (/tmp/app/node_modules/express/lib/router/index.js:47:12)
at Layer.handle [as handle_request] (/tmp/app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/tmp/app/node_modules/express/lib/router/index.js:317:13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment