NestJs App crashed frequently
brayanelgueta
HOBBY
a year ago
My NestJS app crashed twice every day, and gives me this error /app/node_modules/pg/lib/client.js:132
const error = this._ending ? new Error('Connection terminated') : new Error('Connection terminated unexpectedly')
^
Error: Connection terminated unexpectedly
at Connection.<anonymous> (/app/node_modules/pg/lib/client.js:132:73)
at Object.onceWrapper (node:events:631:28)
at Connection.emit (node:events:517:28)
at Socket.<anonymous> (/app/node_modules/pg/lib/connection.js:63:12)
at Socket.emit (node:events:517:28)
at TCP.<anonymous> (node:net:350:12)
aparently lost connection with a postgres container runnnig on Railway too. what should i do?. i must redeploy the app every time to fix it
0 Replies