CodexBloom - Programming Q&A Platform

Azure Logic Apps scenarios to Call Azure Function with 'The request was aborted' scenarios

👀 Views: 0 đŸ’Ŧ Answers: 1 📅 Created: 2025-07-31
azure logic-apps functions C#

I'm updating my dependencies and I recently switched to I'm currently working on an Azure Logic App that is supposed to trigger an Azure Function. However, I'm working with an scenario where the Logic App fails with the behavior message: `The request was aborted: The request was canceled.`. I've double-checked the integration between my Logic App and the Azure Function, and they seem configured correctly. The Logic App is using an HTTP action to call the Azure Function, which is implemented in C#. The Azure Function is set to allow anonymous access for testing purposes. Here's a snippet of my Logic App HTTP action: ```json { "method": "POST", "uri": "https://<functionapp>.azurewebsites.net/api/<function>?code=<function-key>", "headers": { "Content-Type": "application/json" }, "body": "{ \"inputData\": \"test\" }" } ``` In the Azure Function, I have the following C# code: ```csharp [FunctionName("<function>")] public static async Task<IActionResult> Run( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequest req, ILogger log) { log.LogInformation("C# HTTP trigger function processed a request."); string requestBody = await new StreamReader(req.Body).ReadToEndAsync(); // Process the request... return new OkObjectResult("Success"); } ``` When I look at the Logic App run history, it shows the HTTP action as 'Failed' with the aforementioned behavior message. I've tried increasing the timeout settings on the Logic App, but that didn't help. Additionally, I have checked the logs for the Azure Function and found no corresponding requests or errors logged. Any insights into why the Logic App might be aborting the request or how I can further debug this scenario would be greatly appreciated! I'm working in a Linux environment. Has anyone else encountered this? For context: I'm using C# on Linux. I'd be grateful for any help.