Created
October 21, 2018 00:14
-
-
Save DamianRivas/93193e3f3004981e6a1fa488382bfc42 to your computer and use it in GitHub Desktop.
Sequelize error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the wikis controller: | |
index(req, res, next) { | |
wikiQueries.getAllWikis((err, wikis) => { | |
if (err) { | |
console.error(err); | |
res.redirect(500, "static/index"); | |
} else { | |
res.render("wikis/index", { wikis }); | |
} | |
}); | |
///////////////// | |
ERROR | |
///////////////// | |
This is the output for the console.error.... | |
2018-10-21T00:12:14.674400+00:00 app[web.1]: { SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:5432 | |
2018-10-21T00:12:14.674413+00:00 app[web.1]: at connection.connect.err (/app/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:96:24) | |
2018-10-21T00:12:14.674416+00:00 app[web.1]: at Connection.connectingErrorHandler (/app/node_modules/pg/lib/client.js:123:14) | |
2018-10-21T00:12:14.674418+00:00 app[web.1]: at emitOne (events.js:116:13) | |
2018-10-21T00:12:14.674420+00:00 app[web.1]: at Connection.emit (events.js:211:7) | |
2018-10-21T00:12:14.674422+00:00 app[web.1]: at Socket.reportStreamError (/app/node_modules/pg/lib/connection.js:71:10) | |
2018-10-21T00:12:14.674423+00:00 app[web.1]: at emitOne (events.js:116:13) | |
2018-10-21T00:12:14.674425+00:00 app[web.1]: at Socket.emit (events.js:211:7) | |
2018-10-21T00:12:14.674427+00:00 app[web.1]: at emitErrorNT (internal/streams/destroy.js:66:8) | |
2018-10-21T00:12:14.674429+00:00 app[web.1]: at _combinedTickCallback (internal/process/next_tick.js:139:11) | |
2018-10-21T00:12:14.674431+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:181:9) | |
2018-10-21T00:12:14.674432+00:00 app[web.1]: name: 'SequelizeConnectionRefusedError', | |
2018-10-21T00:12:14.674435+00:00 app[web.1]: parent: | |
2018-10-21T00:12:14.674437+00:00 app[web.1]: { Error: connect ECONNREFUSED 127.0.0.1:5432 | |
2018-10-21T00:12:14.674438+00:00 app[web.1]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14) | |
2018-10-21T00:12:14.674441+00:00 app[web.1]: errno: 'ECONNREFUSED', | |
2018-10-21T00:12:14.674443+00:00 app[web.1]: code: 'ECONNREFUSED', | |
2018-10-21T00:12:14.674444+00:00 app[web.1]: syscall: 'connect', | |
2018-10-21T00:12:14.674446+00:00 app[web.1]: address: '127.0.0.1', | |
2018-10-21T00:12:14.674447+00:00 app[web.1]: port: 5432 }, | |
2018-10-21T00:12:14.674449+00:00 app[web.1]: original: | |
2018-10-21T00:12:14.674450+00:00 app[web.1]: { Error: connect ECONNREFUSED 127.0.0.1:5432 | |
2018-10-21T00:12:14.674452+00:00 app[web.1]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14) | |
2018-10-21T00:12:14.674453+00:00 app[web.1]: errno: 'ECONNREFUSED', | |
2018-10-21T00:12:14.674455+00:00 app[web.1]: code: 'ECONNREFUSED', | |
2018-10-21T00:12:14.674456+00:00 app[web.1]: syscall: 'connect', | |
2018-10-21T00:12:14.674458+00:00 app[web.1]: address: '127.0.0.1', | |
2018-10-21T00:12:14.674459+00:00 app[web.1]: port: 5432 } } | |
2018-10-21T00:12:14.677736+00:00 app[web.1]: [0mGET /wikis [31m500 [0m6.914 ms - 84[0m | |
2018-10-21T00:12:14.859228+00:00 app[web.1]: [0mGET /favicon.ico [33m404 [0m2.124 ms - 150[0m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment