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
Describe the bug
If i have an endpoint todo/:id in wich de id is int and i send an string is causing an internal server error, it should respond with a bad request.
To fix this I handled the exception in the exception Handler, but for some reason, if the ASPNETCORE_ENVIROMENT is set to Production there is not detail in the response, otherwise is returning the details on the response.
To Reproduce
Steps to reproduce the behavior:
Call the [PUT] /api/TodoItems/{id} endpoint with an string intead of a integer
Expected behavior
It should return a bad request
The text was updated successfully, but these errors were encountered:
Describe the bug
If i have an endpoint todo/:id in wich de id is int and i send an string is causing an internal server error, it should respond with a bad request.
To fix this I handled the exception in the exception Handler, but for some reason, if the ASPNETCORE_ENVIROMENT is set to Production there is not detail in the response, otherwise is returning the details on the response.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should return a bad request
The text was updated successfully, but these errors were encountered: