http triggered dotnet-isolated .NET 5 function receives empty body stream when Transfer-Encoding is 'chunked'
See original GitHub issueHi,
we are experiencing a problem with an http triggered dotnet-isolated .NET 5 function behind Azure API Management. When Transfer-Encoding is set to ‘chunked’, the HttpRequestData.Body
stream is always empty. Is this a scenario which is expected to work out of the box?
If what I describe is expected to work, what information do you need us to provide, to investigate the cause of the experienced problem further?
Update: HttpRequestData.Body
stream is also empty when calling the function directly. I updated the title to reflect this.
Thanks! David
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Empty request body when Transfer-Encoding is Chunked
My first thought when reading this was Transfer-Encoding is only meant for responses not requests. Looking at the list of HTTP header fields ......
Read more >How HTTP Chunked Encoding was killing a request
Transfer-Encoding: chunked - there is no content length specified, the server tells us it will send a bunch of chunks whenever it has...
Read more >Http chunk encoding miss end of chunked encoding("0\r\n") ...
So I think it is someting that change iiscore.dll to chunked transfer encoding incorretly. And it may be that calling context.Response.Close() ...
Read more >Webhook subscription is triggering with no body
It turned out that the webhooks are now being sent with Transfer-Encoding: chunked, which means there is no content-length header. We were ...
Read more >Content Length header is not present in Http response with ...
Content-length can't be set if the Transfer-Encoding is set to be chunked. Transfer-Encoding: chunked isn't needed for progressive rendering.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is there any status update on this? It’s a dealbreaker when upgrading functions to Runtime v4 and dotnet-isolated 😦
I ran into this issue myself using HttpClient.PutAsJsonAsync, spending a good amount of time isolating the problem. I’m running .NET 7 isolated (v4 runtime). My only options were to load the JsonContent buffer to get the ContentLength set, or switch to sending data via StringContent.
Any updates on this issue from the Functions team would be very helpful.