Closed iToto closed 11 years ago
For some reason the node.js API keeps crashing on the Heroku servers. It looks as though it may be an issue with the connection to PSQL.
Here is a dump of the log:
2013-06-03T02:55:21.731058+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=project-ps.herokuapp.com fwd="76.65.147.185" dyno= connect= service= status=503 bytes= 2013-06-03T03:02:18.399206+00:00 heroku[web.1]: State changed from crashed to starting 2013-06-03T03:02:20.649798+00:00 heroku[web.1]: Starting process with command `node api/web.js` 2013-06-03T03:02:22.711109+00:00 app[web.1]: Listening on port: 11244 2013-06-03T03:02:22.718761+00:00 app[web.1]: 2013-06-03T03:02:22.724351+00:00 app[web.1]: events.js:71 2013-06-03T03:02:22.725568+00:00 app[web.1]: throw arguments[1]; // Unhandled 'error' event 2013-06-03T03:02:22.725682+00:00 app[web.1]: ^ 2013-06-03T03:02:22.727552+00:00 app[web.1]: Error: invalid connection option "client_encoding" 2013-06-03T03:02:22.727552+00:00 app[web.1]: 2013-06-03T03:02:22.727552+00:00 app[web.1]: at Connection.connection.on.q (/app/node_modules/pg/lib/native/index.js:188:17) 2013-06-03T03:02:22.727552+00:00 app[web.1]: at Connection.EventEmitter.emit (events.js:96:17) 2013-06-03T03:02:22.727552+00:00 app[web.1]: at Connection.connect (/app/node_modules/pg/lib/native/index.js:49:19) 2013-06-03T03:02:22.727552+00:00 app[web.1]: at ConnectionParameters.getLibpqConnectionString (/app/node_modules/pg/lib/connection-parameters.js:68:12) 2013-06-03T03:02:22.727552+00:00 app[web.1]: at asyncCallback (dns.js:68:16) 2013-06-03T03:02:22.727552+00:00 app[web.1]: at Object.onanswer [as oncomplete] (dns.js:121:9) 2013-06-03T03:02:24.277885+00:00 heroku[web.1]: Process exited with status 1 2013-06-03T03:02:24.291517+00:00 heroku[web.1]: State changed from starting to crashed
oops, wrong repo lol
For some reason the node.js API keeps crashing on the Heroku servers. It looks as though it may be an issue with the connection to PSQL.
Here is a dump of the log: