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

Aug 29 09:36:58

const error = this._ending ? new Error('Connection terminated') : new Error('Connection terminated unexpectedly')

Aug 29 09:36:58

^

Aug 29 09:36:58

Error: Connection terminated unexpectedly

Aug 29 09:36:58

at Connection.<anonymous> (/app/node_modules/pg/lib/client.js:132:73)

Aug 29 09:36:58

at Object.onceWrapper (node:events:631:28)

Aug 29 09:36:58

at Connection.emit (node:events:517:28)

Aug 29 09:36:58

at Socket.<anonymous> (/app/node_modules/pg/lib/connection.js:63:12)

Aug 29 09:36:58

at Socket.emit (node:events:517:28)

Aug 29 09:36:58

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

NestJs App crashed frequently - Railway Help Station