praveen
praveen

Reputation: 359

BadRequest while calling Azure function from logicapp

In my logicapp I have configured to trigger a azure function , once the azure function triggered it does the job successfully but in logicapp flow i can see it failed with badrequest (below JPG)

enter image description here

Error :

{
  "error": {
    "code": "BadRequest",
    "message": "Http request failed: the server did not respond within the timeout limit. Please see logic app limits at https://aka.ms/logic-apps-limits-and-config#http-limits."
  }
}

More details of Azure function :

  1. Average total runtime 3-5 minutes
  2. Written in PowerShell

Upvotes: 1

Views: 1150

Answers (1)

anon
anon

Reputation:

enter image description here In your Error Image of Logic App, it shows a MS Link i.e., Azure Logic App Limits and Config.

It has been written that there are limits for both inbound and outbound request in Azure Logic App for the Http Requests:

enter image description here

Also, there is notes section on using the Inbound requests in a Logic App in long runs case.

Thanks to @AnandSowmithiran for suggesting the alternative solution to the user with this Jeff Hollan's medium article.

You can use a HTTP Webhook from the Logic App if it is long running if your total runtime exceeds than the default timeout of Logic app inbound request.

I have found a SO Thread on the same context of Azure Logic App Timeout when function app is triggering where User @HuryShen provided how to use the Webhook in an Azure Logic App with sample example.

Upvotes: 1

Related Questions