An unhandled exception has occurred while executing the request #438

Closed
opened 2025-08-09 17:16:17 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @tutok on 9/7/2017

I am receiving errors like this:

Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[0]
   An unhandled exception has occurred while executing the request
System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Net.Http.DiagnosticsHandler.<SendAsync>d__2.MoveNext()

Is there any way to find out what is causing it?

I realized that it is likely to happen when web server is running in dev mode, and then I introduce even small change in code to trigger package rebuilding, then hit f5 to refresh page.

After that, asp.net server can not communicate with node and this error is thown constantlly:

Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[0]
  An unhandled exception has occurred while executing the request
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> 
System.Net.Http.WinHttpException: A connection with the server could not be established
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.Tasks.RendezvousAwaitable`1.GetResult()
   at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext()

it looks like dev server is crashing durring rebuilding, but stack trace does not contan any info where.

It could be caused by some timeout? I tried to set InvocationTimeoutMilliseconds into 5 minutes but it not helps.

of course webpack --progress --display-error-details is fine

*Originally created by @tutok on 9/7/2017* I am receiving errors like this: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[0] An unhandled exception has occurred while executing the request System.Threading.Tasks.TaskCanceledException: A task was canceled. at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at System.Net.Http.DiagnosticsHandler.<SendAsync>d__2.MoveNext() Is there any way to find out what is causing it? I realized that it is likely to happen when web server is running in dev mode, and then I introduce even small change in code to trigger package rebuilding, then hit f5 to refresh page. After that, asp.net server can not communicate with node and this error is thown constantlly: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[0] An unhandled exception has occurred while executing the request System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: A connection with the server could not be established at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.Tasks.RendezvousAwaitable`1.GetResult() at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext() it looks like dev server is crashing durring rebuilding, but stack trace does not contan any info where. It could be caused by some timeout? I tried to set InvocationTimeoutMilliseconds into 5 minutes but it not helps. of course `webpack --progress --display-error-details` is fine
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#438
No description provided.