Closed hajekj closed 7 months ago
This issue is stale because it has been open for 45 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
@hajekj Did you find a solution? Facing the same issue.
The solution is to disable chunking on HttpClient side, which can be achieved like this:
var request = new HttpRequestMessage(HttpMethod.Post, "https://...");
// https://github.com/Azure/logicapps/issues/869
var content = JsonContent.Create(body);
await content.LoadIntoBufferAsync();
request.Content = content;
+1, nothing works if the request body was chunked and I didn't call LoadIntoBufferAsync()
.
Describe the Bug
I have the following Logic App:
/resource/subscriptions/63dd3a98-6ad8-47ae-ae7f-568e9b3104a8/resourcegroups/LogicAppsConsumption/providers/Microsoft.Logic/workflows/case-2307310050002056/designer
which is defined as the workflow JSON sample below. The trigger URL is:https://prod-06.westeurope.logic.azure.com:443/workflows/97c8d03a704c44368ca59e64d7ea425b/triggers/manual/paths/invoke?...
when sending a HTTP request to this endpoint, it resolves as Traffic Manager and further resolves as eitherflowfe-prod-am-rp00-app.flow-prod-am-rp00-ase.p.azurewebsites.net
(ASE) orflowfe-prod-am-rp.cloudapp.net
(Cloud Service) with likely a 1:5 ratio. When I send a standard HTTP POST request from ASP.NET, and the request is routed through Cloud Service, the body is outputted correctly. When the request gets routed through ASE, the body is empty.Support in the case mentioned below identified the issue here which looks like it has been present since 2016.
Reference Microsoft Case: #2307310050002056
Plan Type
Consumption
Steps to Reproduce the Bug or Issue
Read the bug description. And execute this from WSL:
Wrong ASE
Works ASE
Works Cloud Service
Workflow JSON
Screenshots or Videos
No response
Additional context
Affects also Power Automate which runs on top of Logic Apps consumption. I removed the trigger URL parameters since it failed to sync to Microsoft's DevOps, however I am happy to provide those for testing.
Partially related to https://github.com/dotnet/runtime/issues/30283 and Stack Overflow providing mitigation.
AB#25096226