-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TimeOutException in HttpTrigger Function #2910
Comments
Hey @ansonpinhero, the exception above seems to indicate that either your worker didn't get the context information from the host, or there is something with the execution pipeline impacting the context synchronization. How often are you seeing this happen? Can you tell whether this happens in specific scenarios like activation or scaling? If you can share your app name (or region, an invocation ID and a timeframe), we can also try to take a look a platform logs. If you're seeing this in production, opening a support request would also be a good way to proceed as your app information would be associated with that. Thanks! |
I have a Function App running in a Docker container on my local machine. I'm using Datadog for profiling and tracing. However, I am encountering this issue only when Datadog tracing is enabled (DD_TRACE_ENABLED = true). According to the Datadog profiler's code, the exception is thrown when the WorkerRequestServicesMiddleware is invoked by a middleware injected by Datadog. Please see the following code snippet:
The test scenario involves sending HTTP requests, starting with 10 virtual users, ramping up to 100 virtual users, holding at that level for 10 minutes, and then ramping down to 0. The issue occurs when the load reaches 40 virtual users, where I start seeing exceptions. Below is my function.
Dockerfile
|
i was facing similar issue, in my case disabling aspnet health check middleware helped |
I am encountering a TimeOutException at the following line of code:
azure-functions-dotnet-worker/extensions/Worker.Extensions.Http.AspNetCore/src/Coordinator/DefaultHttpCoordinator.cs
Line 36 in 2bbc2b9
This issue occurs intermittently. I have a Time Triggered function that invokes an HTTP Trigger function within the same Function App.
Below is the exception stack trace:
`Connection id "{ConnectionId}", Request id "{TraceIdentifier}": An unhandled exception was thrown by the application.
System.TimeoutException: The operation has timed out.
at Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.WorkerRequestServicesMiddleware.Invoke(HttpContext context) in /mnt/vss/_work/1/s/extensions/Worker.Extensions.Http.AspNetCore/src/AspNetMiddleware/WorkerRequestServicesMiddleware.cs:line 28
at Datadog.Trace.ClrProfiler.AutoInstrumentation.AspNetCore.BlockingMiddleware.Invoke(HttpContext context) in /project/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/AspNetCore/BlockingMiddleware.cs:line 115
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication
1 application)
Could anyone provide insights or suggestions to debug and resolve this issue?
The text was updated successfully, but these errors were encountered: