Application stopped when delete list of records

Feature(s) impacted

Routes delete list of records

Observed behavior

Forest admin stop the running process when try to delete list of records that still have relation attached to another tables

this is the routes:

Expected behavior

Return error but without exit process (application stoped)

Failure Logs


  • Project name: Siklus
  • Team name: Siklus
  • Environment name: Staging
  • Agent type & version: express
  • Recent changes made on your end if any: no changes

Hello @umar006,

Can you please share with us the exact version of forest-express-sequelize that you are using on your project?

sure, “forest-express-sequelize”: “^7.11.3”

Hello @GuillaumeGautreau

is there any update about this issue?

thank you

Hello @umar006,

I tried to reproduce your exact issue, with forest-express-sequelize@7.11.3 (the exact version) and the process did not halt as you described.

Can you check in your package-lock.json or yarn.lock file to get the exact version that is installed in your case?

I also tested with the latest v7 and could not reproduce the issue either.

Can you check that you have a mechanism to catch error in your app.js file?

In my example project I have, at the end of the file

app.use(function (err, req, res, next) {
  console.error(err, err.stack)

i already recheck forest-express-sequelize version in package.json and package-lock.json and i use version 7.11.3

I use this to catch error in app.js, is this correct ?

app.use(errorHandler({ logger }));

errorHandler and logger from forest-express@5.3.1

and also I try your code example and it didn’t works

I think it’s a bug from forest-express-sequelize@7.11.3 because I upgrade the library to version 8 and the error has gone

thank you for the help

1 Like