Asp.net WebAPI HTTP SERVER ERRORS - user breaks the connection

I have a Web.Api project, and I deployed it to Azure Web Sites. Several times I see a lot of HTTP SERVER ERRORS in the control panel.

Error Details: ManagedPipelineHandler Module ExecuteRequestHandler Notification System.Web.Http.WebHost.HttpControllerHandler Handler Error Code 0x800703e3 URL requested http: // test-server: 80 / api / Statistics / ShowStories Physical Path D: \ home \ site \ wwwroot \ api \ Statistics \ ShowStories Logon Anonymous Anonymous Anonymous

I do not know how to fix it and why this is happening.

UPDATE

I found this to happen because the user is breaking the Internet connection, and my question is: how to catch these problems, maybe create some kind of custom exception handler and log these problems, that these are “HTTP server errors”, and not show the Cote d'Azur?

+4
source share
1 answer

See this question: ASP.NETCanceledException web API operation when the browser cancels the request

I think that if you handle OperationCanceledException correctly, the error will not be logged.

+1
source

Source: https://habr.com/ru/post/1609643/


All Articles