On submit of smart action when the response status is 400, the error notification is displayed but its not auto-closed similar to success notifications which do get auto-closed with some delay

Feature(s) impacted

Smart actions

Observed behavior

Error notifications don’t auto close similar to success notifications.

Expected behavior

Error notifications should be getting auto closed similar to success notification.


  • Package Version: 8.3 (forest-express-sequelize)
  • Express Version: 4.17.1
  • Sequelize Version: 6.6.5
  • Database Dialect: MySql
  • Database Version: 5.7.24

Hello @Saurav_Suman, and welcome to the ForestAdmin community.

This 400 error staying on screen is the expected behaviour, as long as there is a custom error message.

For exemple, this will stay on screen:

router.post('/actions/err400', permissionMiddlewareCreator.create(), (request, response, next) => {
  response.send({ error: 'custom error staying on screen' });

The 400 error indicates that the ForestAdmin agent is unable to process the request, and this should not happen.
In this case, we need to ensure that the message is not ignored by the developper setting up the admin layout.

Can you confirm that 400 is the right error code in your case?

Thank you