CodexBloom - Programming Q&A Platform

How to troubleshoot Azure Logic Apps timeout issues when calling an external REST API?

๐Ÿ‘€ Views: 95 ๐Ÿ’ฌ Answers: 1 ๐Ÿ“… Created: 2025-06-09
azure logic-apps http timeout json

I'm having a hard time understanding I can't seem to get I'm currently working on an Azure Logic App that calls an external REST API to fetch user data. The Logic App is set to use an HTTP action, but I'm working with timeout issues. Specifically, the logic app runs for about 90 seconds and then fails with the behavior message: `The action 'HTTP' failed with status code '504' and the status text 'Gateway Timeout'`. I've tried increasing the timeout setting in the HTTP action to 120 seconds, but it still fails the same way. Hereโ€™s the configuration of my HTTP action: ```json { "inputs": { "method": "GET", "uri": "https://api.external-service.com/users", "headers": { "Authorization": "Bearer <token>" } }, "runAfter": {}, "metadata": { "operationMetadataId": "<id>" }, "type": "Http" } ``` I've also checked the external API and confirmed that it is responsive by making calls directly from Postman, where the request usually completes in under 5 seconds. I'm not sure if this timeout is related to Azure's internal handling of long-running requests or if thereโ€™s something misconfigured on my end. Any insights on how to debug or increase the timeout effectively would be greatly appreciated. Additionally, are there any best practices for handling long-running external calls within Azure Logic Apps? For reference, this is a production application. Thanks in advance! I'm working with Json in a Docker container on CentOS. I'd love to hear your thoughts on this.