question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

http triggered dotnet-isolated .NET 5 function receives empty body stream when Transfer-Encoding is 'chunked'

See original GitHub issue

Hi,

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:open
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
yggdrasil-tynorcommented, Apr 4, 2022

Is there any status update on this? It’s a dealbreaker when upgrading functions to Runtime v4 and dotnet-isolated 😦

1reaction
steve-warrencommented, May 26, 2023

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found