Marek Buban
Marek Buban

Reputation: 65

Logic Apps: HTTP trigger and response time out

I have pretty simple LA that contains just 3 actions. It has HTTP trigger, then it gets some data from SQL server and returns http response with SQL data.

Sometimes, it takes 30-50 seconds to get data from SQL but Logic App in the meantime responses with Timeout error to caller.

The execution of template action 'Response_2' is failed: the client application timed out waiting for a response from service. This means that workflow took longer to respond than the alloted timeout value. The connection maintained between the client application and service will be closed and client application will get an HTTP status code 504 Gateway Timeout.

Any idea how to increase allowed time for response?

Upvotes: 4

Views: 4754

Answers (1)

Frank Borzage
Frank Borzage

Reputation: 6816

You can turn on the Asynchronous Response in the Settings of the Response action:

enter image description here

enter image description here

When you run your logic app longer than its time limit, you will accept 202 HTTP Code first:

enter image description here

It will return a response contains location header:

enter image description here

You can request the location URL, if the status of your logic app still is running, it will return 202.

enter image description here

If the status of your logic app is Succeeded, then it will return the results you want.

enter image description here

You can refer this official document.

Upvotes: 4

Related Questions