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
Problem:
We have cases, when errors are happened, but the client will se only that something goes wrong without any error information to avoid it in future and simply understand what's going on. Let's think about error handler to let clients know about the mistakes that they were made.
Solution:
We must add error handler to make returning errors info possible. (ExceptionHandler docs)
I don't know, it should be discussed with @myazinn, but I think, we should have exception handler for each service.
Steps to reproduce:
Create user by using signUp endpoint (localhost:8088/auth/v1/signUp)
Try to create another user using the same email
Actual result:
Response with 500 status and "There was an internal server error." message
Expected result:
Json response with 500 status and body like { "message": "error message" } (should also be discussed with @myazinn)
The text was updated successfully, but these errors were encountered:
I think it should be the 409 error "Resource already exist" or something like this, because 500 it is Internal server error, it happense when server is down or when it is the critical error.
Problem:
We have cases, when errors are happened, but the client will se only that something goes wrong without any error information to avoid it in future and simply understand what's going on. Let's think about error handler to let clients know about the mistakes that they were made.
Solution:
We must add error handler to make returning errors info possible. (ExceptionHandler docs)
I don't know, it should be discussed with @myazinn, but I think, we should have exception handler for each service.
Steps to reproduce:
Actual result:
Response with 500 status and "There was an internal server error." message
Expected result:
Json response with 500 status and body like
{ "message": "error message" }
(should also be discussed with @myazinn)The text was updated successfully, but these errors were encountered: