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 Automate
Suggested Answer

bad gateway

(1) ShareShare
ReportReport
Posted on by
all of a sudden my flow isnt working and I see a bad gateway error.... is that just a broken connection ?
 
I have the same question (0)
  • Suggested answer
    RaghavMishra Profile Picture
    261 on at

    Hi there,

    A sudden "Bad Gateway" (HTTP 502) almost always points to a transient connector/gateway issue rather than something wrong with your flow logic. Here's how to triage it:

    1. Check the connection used by the failing action

    • Open the flow → Connections and confirm the connection shows Connected (not "Fix connection").
    • If you use an on-premises data gateway, confirm its status is Online in the Power Platform admin center.

    2. Repair / re-authenticate

    • Edit the failing action → click the connection → Add new connection and sign in again. Token expiry is a common 502 cause.

    3. Inspect the run history

    • Open the failed run, expand the failing action, and copy the full error JSON. The status and x-ms-failure-cause tell you whether it's ClientConnectionError (transient) vs. a service-side fault. See Fix a flow that has failed.

    4. Add resiliency

    • Configure retry policy on the action (exponential, 4 retries is a good baseline) so transient 5xx errors auto-recover.

    5. If the gateway itself is the cause

    If it returns intermittently and a retry policy resolves it, it's a transient service hiccup. If it's persistent on one connector only, the connection needs to be recreated.

    Found this helpful? Please mark ✅ "Does this answer your question?" so others searching for the same issue can find it quickly. A 👍 on "Was this reply helpful?" or a ♥ Like is also much appreciated!

    Raghav Mishra — LinkedIn | PowerAI Labs

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard