Skip to main content

Notifications

Power Apps - Building Power Apps
Suggested answer

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

Posted on by 1,372
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
    Meekou 132 on at
    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
    johnjohnPter 1,372 on at
    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
    Meekou 132 on at
    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
    johnjohnPter 1,372 on at
    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
    Mark Nanneman 329 on at
    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
    johnjohnPter 1,372 on at
    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
    johnjohnPter 1,372 on at
    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
    Mark Nanneman 329 on at
    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  | Buy me a coffee

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard