Skip to main content

Notifications

Community site session details

Community site session details

Session Id : EDAngxBMBfgsbKuidEa7u8
Power Apps - Building Power Apps
Suggested answer

Send Http Request. Http request failed: the server did not respond within the timeout limit.

Like (0) ShareShare
ReportReport
Posted on 20 Nov 2024 21:41:14 by 1,542 Super User 2024 Season 1
I have a Send Http Request to external API, but most of them time the action failed with this 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."
  }
}
 
and it keeps trying to get the data for 12 tries without any success call, and each try will take 2 minutes;-
 
 
 
 
Now i have the default setting for this action which uses Asynchronous call, as follow:-
 
 
 
 
So how i can increase the duration of the call to be more than 2 minutes? although using PostMan i can get the data in less than 30 seconds!!
 
Any advice? I also uncheck the "Asynchronous Pattern" checkbox, but nothing differ,, so not sure what this checkbox is suppose to do..
 
  • Meekou Profile Picture
    189 Super User 2025 Season 1 on 22 Nov 2024 at 02:16:50
    Send Http Request. Http request failed: the server did not respond within the timeout limit.
    You will need to check request in the flow history, and then compare it with the request from postman, check whether there is any difference.
    Pay attention to check value for the parameters value.
    Regards,
    Meekou
    Personal Support
  • johnjohnPter Profile Picture
    1,542 Super User 2024 Season 1 on 21 Nov 2024 at 13:56:54
    Send Http Request. Http request failed: the server did not respond within the timeout limit.
    @Meekou
     
     
    Those are the headers and the full request:-
     
     
     
    Thanks
  • Meekou Profile Picture
    189 Super User 2025 Season 1 on 21 Nov 2024 at 05:54:40
    Send Http Request. Http request failed: the server did not respond within the timeout limit.
    Could you share your request header and body for postman and power automate flow?
     
    In general, it should not make such difference for the same request.
     
    Regards,
    Meekou
  • johnjohnPter Profile Picture
    1,542 Super User 2024 Season 1 on 20 Nov 2024 at 23:51:01
    Send Http Request. Http request failed: the server did not respond within the timeout limit.
    First yes we on this forum help each other for free, looks wired to you?
     
    also i am not asking specific question about the API, as i can connect to it using Postman, so the problem is with power automate that it time out after 2 minutes,,, not sure if this info is interested to you,, i though you already know this..
  • Mark Nanneman Profile Picture
    989 Super User 2025 Season 1 on 20 Nov 2024 at 23:36:25
    Send Http Request. Http request failed: the server did not respond within the timeout limit.
    Re:
    Anyway thanks for your time in replying to my recent questions, but do u test what you post? or you post based on what u think should work?

    Obviously I can't test your API call buddy, cause I don't know what it is.  😁
    Just giving you some tips on how to set the time out and retry policy on your end (so you're at least not making dozens of badrequests to your endpoint).

    Good luck, hopefully someone else can spend time helping you for free👍

  • johnjohnPter Profile Picture
    1,542 Super User 2024 Season 1 on 20 Nov 2024 at 23:21:04
    Send Http Request. Http request failed: the server did not respond within the timeout limit.
     
    also i am not sure if setting a timeout will make any differences, here what i did :-
     
     
    but still each try will timeout after 2 minutes:-
     
     
     
    Anyway thanks for your time in replying to my recent questions, but do u test what you post? or you post based on what u think should work?
     
    Thanks
  • johnjohnPter Profile Picture
    1,542 Super User 2024 Season 1 on 20 Nov 2024 at 22:30:47
    Send Http Request. Http request failed: the server did not respond within the timeout limit.
     
    Thanks for the reply.. i am using the exact headers and i am using username and password... also setting the retry the way u mentioned will not solve the issue, it will only fail my flow earlier, am i correct?
  • Suggested answer
    Mark Nanneman Profile Picture
    989 Super User 2025 Season 1 on 20 Nov 2024 at 22:16:16
    Send Http Request. Http request failed: the server did not respond within the timeout limit.
    First, if it works quickly in PostMan but not in Power Automate, consider checking your Headers and any Authentication you're using.  Sometimes there's an issue with cookies.  You might also not have something right in your payload (if there is one).

    If you own / can access the other end of the API you can make sure it's configured correctly. 
    On your end though what you should do is change the "Duration".  The example it gives is "P1D" which is a one day timeout.  This is in ISO 8601 format, you can google this or ask chatGPT. 

    You could do PT1H for one hour, PT15M for 15min.
     

    You could also consider setting your "Retry Policy" to none or an interval.






    If this helped you, please click "Does this answer your question" and give it a like to help others in the community (+ close the ticket)!

    Power Platform Developer | LinkedIn: Mark Nanneman | Blog: Power Stuff  | YouTube: Mark's Power Stuff  |

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard