-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Provide better json support for servers don't support chunked request body (re-open) #55583
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsRefer to #49357 As the issue #49357 been closed due to this comment:
I have to say the Azure Logic App HTTP trigger doesn't support "chunked encoding". (I'm still confusing why it doesn't support.) I was trying to POST a message to Azure Logic App with a HTTP trigger. It because HttpClient's
|
The workaround looks pretty good: var content = JsonContent.Create<T>(json);
await content.LoadIntoBufferAsync();
var response = await httpClient.PostAsync(url, content); |
I agreed. I think this should be documented somewhere. |
Triage: This is general problem that the server is violating HTTP spec and does not support chunking. We believe that this issue is currently good enough documentation. We won't update official docs, unless we have few more reports. If you run into this, please upvote to post, or create new issue and link this one (if this one is locked by then). @doggy8088 can you please file an issue against |
@karelz I can find out there is an UserVoice item here: https://feedback.azure.com/forums/287593-logic-apps/suggestions/33616297-implement-chunked-transfer-encoding-inside-logic-a |
Refer to #49357
As the issue #49357 been closed due to this comment:
I have to say the Azure Logic App HTTP trigger doesn't support "chunked encoding". In Handle large messages with chunking in Azure Logic Apps doc, it says:
I was trying to POST a message to Azure Logic App with a HTTP trigger. It because HttpClient's
PostAsJsonAsync
ONLY support chunked encoding by default. I know what @davidfowl said not recommend buffering for large JSON payloads, but most of the payload to the Azure Logic App are really small. I think it should have an straightforward option to usePostAsJsonAsync
without chunked encoding.The text was updated successfully, but these errors were encountered: