Open AnthonyGiretti opened 4 days ago
Adding some notes - this is similar to https://github.com/Azure/azure-functions-dotnet-worker/issues/2682, except it is not mitigated by using IActionResult
. Stack trace points to serialization step for gRPC pipeline.
@satvu let's sync. This shouldn't be using the HttpResponseData
path.
Description
Description
I'm experiencing issues with my Azure Functions while using the MultiResponse on HttpTriggers. Once a single request it's working, once several requests are coming in, it leads to the following error: 'Exception while executing function: Functions.IqIngressFunction Result: Failure Exception: System.ObjectDisposedException: IFeatureCollection has been disposed. Object name: 'Collection'.'
Expected behavior
It should not throw that error
Actual behavior
It's working correctly locally on my machine, the issue appears only when it's deployed on Azure. When I remove ASP.NET Core Integration and returning only the messages (string[]) in output it's working When I remove the output queue it's also working (returning only IActionResult) Only when we mix Httpresponse management with ASP.NET Core Integration + output queue it's crashing on the cloud only, not locally
Relevant source code snippets
Known workarounds
Using a queue client (SDK required works)
App Details
Screenshots
If deployed to Azure
see screenshot below
Steps to reproduce
Using MultiResponse as follows:
Then create an HttpClient and run 10 calls. 50 % of them will fail (InternlServerError 500), while others will work and return HttpStatus 200 OK