This project is read-only.

Unhandled exception is being logged when client cancels requests still happens


It appears this issue was clsoed for some reason.

It still happens on 5.2.3 and I posted details back in April of the error it gives. I get these everyday. (I am not using the workaround listed as this was supposed to be fixed)


LLooz wrote Nov 30, 2015 at 9:31 AM

I have this issue too with web api 5.2.3

manikyalarao wrote Apr 6, 2016 at 7:44 AM

Please prioritize this issue we are facing the same issue with web api 5.2.3

manikyalarao wrote Apr 7, 2016 at 11:51 AM

Please let me know in which release you are planning to fix this issue

bunceg wrote Apr 8, 2016 at 12:07 PM

I'm getting this too. In my case the Cancellation token is setup within the webapi controller method, and set to cancel after xx seconds. So, the webapi itself if cancelling the request if it's taking too long (we depend on downstream systems so cancel if they are not responding in time), not an external client.

When the cancellation token fires, the webapi call is cancelled but the global exception handler (implementation of IExceptionHandler) is not fired at all. We get a 500 and then an unhandled ASP.NET exception in the Even Log.

WebApi 5.2.3

bunceg wrote Apr 8, 2016 at 12:11 PM

btw, the workaround listed (DelegatingHandler) doesn't work for me as the cancellation is happening from within the method itself after the delgating handler has been called

manikyalarao wrote May 3, 2016 at 12:00 PM

Core Team.. please respond in which release you are planning to fix this issue

uniprof wrote Oct 23, 2016 at 1:13 AM

Very close to the birthday !!!! ready for party?

tynorton wrote Nov 21, 2016 at 8:30 PM

Is this getting fixed?

AdamT wrote Apr 27 at 12:04 PM

Issue still exists. Any plan for a fix?

ArtemA wrote May 5 at 1:22 PM

Is there any workaround that works in Web API 5.2.3?

drmcclelland wrote Jul 18 at 4:09 PM

Same issue here - is there anything we can do to stop IIS from responding with a 500 and logging it in the IIS logs? This creates a "false positive" which is difficult to detect.