0

I am having an issue that if Node server application is already running using Sequelize, then Database server has been crashed then it also close node process, how to handle it ?

I also checked on Sequelize repo issue https://github.com/sequelize/sequelize/issues/1854

But error events not implemented yet.

Any idea, Thanks in advance

Ritesh Arora
  • 57
  • 11
  • Do you have global error handler in express (or what are you using)? Did you try to wrap all calls to DB with try/catch? – Anatoly Feb 21 '20 at 18:17
  • Or you wish to catch DB Connection Error only and react to it specifically? – Anatoly Feb 21 '20 at 18:18

0 Answers0