When monitoring an Azure Logic Apps workflow run, the job fails immediately even if a Failure Interval (e.g., 500 seconds) is configured. The job report shows the following error:
ERROR: Monitoring failed
ERROR: Possible Reason: Request failed: 400 - Bad Request
Exception Response: {"Code":"BadRequest","Message":"Encountered an error (BadGateway) from host runtime." ... }Azure logs may also show:
Sc_status: 400Sc_substatus: 604RequestCanceled, ClientGoneThis was investigated under DE203206:
Azure Logic Apps uses ARR as a reverse proxy. When the backend host runtime becomes transiently unavailable, ARR terminates the connection and returns an HTTP 400 Bad Request with substatus 604 (ClientGone). While the 24.0.1 agent retries on 408 and 429 errors, it does not recognize this specific 400 error pattern as transient. The agent treats it as a permanent failure and stops immediately.
Fixed in release Integration.Azure.LogicApps 24.0.2 and higher.
We have updated the integrations to systematically retry on all standard Azure transient HTTP status codes:
Additionally, because Azure API Management occasionally wraps transient errors inside of a 400 Bad Request response, we have implemented specific parsing to detect and retry on transient messages within 400 responses, including: