Azure Server returns 500 status without thrown error

100 Views Asked by At

I have some issue with an application deployed on Azure.

On my local deployment when I do something that throw new exception (for example I tried to add new user with same UserName like other user) server return status 500 and in F12 -> Console -> Network -> Request -> Preview I get an exception message like this: "System.Exception: Exception message (...)"

screenshot from localhost request

When I tried to recreate the error in Azure, I receive only status 500 without any data in F12 -> Console -> Network -> Request -> Preview

screenshot from azure request

I need to have that data from the request error because, I create errorHandler with messages for user, and it don't work without request error message.

Application is written in C#/.NET 7.0 and Angular 15+

0

There are 0 best solutions below