Hi everyone,
I am facing a timeout issue in a workflow built using Azure Logic Apps that is being exposed through Azure API Management (APIM).
Architecture
Our integration flow is designed as follows:
- The Logic App uses the “When an HTTP request is received” trigger.
The HTTP trigger URL of the Logic App is configured as the backend in Azure API Management.
We expose the APIM frontend URL to the client application.
The client sends the request to APIM → APIM forwards it to the Logic App → Logic App processes the request and returns a Response action.
Flow structure:
Client
Issue
The workflow fails with the following error:
ActionResponseTimedOut
Observed Behavior
The request fails after ~1 minute.
The client receives 504 Gateway Timeout.
The failure happens before the Response action completes.
Timeout Understanding
From my understanding:
Logic App Response action timeout: ~230 seconds
Azure API Management backend timeout: ~240 seconds
However, in our case the request is timing out after approximately 60 seconds, which is much earlier than these limits.
Questions
I would appreciate guidance on the following:
Why would the request timeout at ~60 seconds when the Logic App and APIM limits appear higher?
Is there any hidden or intermediate timeout between APIM and Logic Apps that could cause this?
Are there recommended patterns when exposing Logic Apps through APIM where processing might take longer than a minute?
Would it be better to return an early response (202 Accepted) and process the workflow asynchronously?
Any insights or best practices from others who have implemented Logic Apps behind APIM would be very helpful.
Thank you,
HItakshi Chauhan
@Azure Learning Azure Learning @azure azure @azure azure @Azure,LogicApps
@logicapp @LogicApps @LogicApps Learner @CRM LogicApps @LogicApps, SVC_Europe @LogicApps