You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@BrunoQuaresma I started on this, just having the XService display the error's message if it's an Error, else the standard error from Language, and the problem is that it shows "Request failed with status 400" instead of the nice error message that I see in the Network tab. I think you had thoughts about how we can get the good error message into XState, right?
The following cases verified:
Admin user is changing his own role -> error You cannot change your own roles.
Admin suspend himself -> You cannot suspend yourself
Steps to Reproduce
Users
pageError on update the user roles
Expected
The backend payload is
{"message":"You cannot change your own roles."}
. We should elevate a more detailed error in the toast error.Actual
Error is always the same error regardless of backend text.
Logs
Screenshot
Notes
Our frontend does constant errors in a lot of places, we should elevate backend text.
The text was updated successfully, but these errors were encountered: