逻辑应用:HTTP 触发器和响应超时

Logic Apps: HTTP trigger and response time out

我有一个非常简单的 LA,它只包含 3 个动作。它有 HTTP 触发器,然后它从 SQL 服务器和 returns http 响应获取一些数据 SQL 数据。

有时,需要 30-50 秒才能从 SQL 获取数据,但同时 Logic App 会向调用者响应超时错误。

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.

知道如何增加允许的响应时间吗?

您可以在Response动作的Settings中开启Asynchronous Response

当您运行您的逻辑应用程序超过其时间限制时,您将首先接受 202HTTP Code

它会 return 响应包含位置 header:

你可以请求location URL,如果你的逻辑应用的状态仍然是running,它会return 202.

如果您的逻辑应用程序的状态是 Succeeded,那么它将 return 您想要的结果。

你可以参考这个official document