Proper API responses instead of thrown Errors

Hello, updating from 4.5.6 to the latest v4 I’ve noticed this issue still being not resolved: ServerError: Inconsistent handling of invalid input · Issue #15648 · strapi/strapi · GitHub For every failed login or verious other minor sanity checks

  • you get no structured API response
  • an error is thrown, which is a pain in the ass for every project monitoring errors of their deployments, having the statistics and alarms spammed.

I’ve provided the fix I’ve put myself into place in the issue. This is an absolute production blocker.

This topic has been created from a Discord post (1251145284939939861) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord