web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP API Key retry time
Power Automate
Suggested Answer

HTTP API Key retry time

(0) ShareShare
ReportReport
Posted on by
Hello, I have been trying to use a power automate flow with an open ai API key to scan invoices. However, I have come across a problem where sometimes the file is too large, and it will fail with a "BadRequest" after 2 minutes, even though I have set the timeout limit to 10 minutes. I assume this is due to the time taken for the open ai to respond to a large file, so is there any way I can increase this time without going into the settings (I have already done this)
Categories:
I have the same question (0)
  • Suggested answer
    Raymen Deol Profile Picture
    67 on at
    Hi,
     
    The HTTP Request action in power automate has a limit of 120seconds (2 mins) for outbound synchronous requests. Changing the value in the "Duration" field will only work with outbound asynchronous requests. 

    I recommend looking at creating async requests using a polling pattern within power automate. If for example the API endpoint sends a 202 response when you first initiate the request you can poll the endpoint until the final response is received. I have included a link below that may help.

    Rate limit documentation: Limits of automated, scheduled, and instant flows - Power Automate | Microsoft Learn
    Article on long lasting async requests - caller flow section may be useful: Pattern & implementation for making long Async Http calls in Microsoft Flow : (part 1 : polling) | Serge Luca aka "Doctor Flow" (Microsoft Power Platform/Business Applications MVP)

    If that doesn't work other options would be to split the file into smaller chunks or maybe look at offboarding this to an azure function or something similar.
     
    Thank you, 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 820

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard