Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Bad Gateway : Error 502

My flow used to work perfectly : When a new file is dropped in one particular folder in onedrive, i get an email.


Since July 11th, my flow give me a Bad Gateway" message :


"error": {
"code": 502,
"source": "",
"clientRequestId": "b1d0b56d-a837-4974-8f5d-c8b6ccda4ecc",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "Unable to connect to the remote server.\r\n inner exception: An error occurred while sending the request.\r\n inner exception: Unable to connect to the remote server\r\n inner exception: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond",
"source": ""
Any idea how to fix it?
Thank you !
Helper I
Helper I


Community Support
Community Support

Hi @ovo ,


I have tested it on my side and hasn't met the same issue.

Did the issue happen on some files or all files when you dropped files?

You could try the following methods:

  • Recreate the connection of OneDrive connector, or you could recreate a similar Flow to test.
  • Clear your browser cache and delete cookies then do a similar test.


Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
New Member

I have the same issue and I have tried deleting all one drive connections. Created a new one. Still I have the same issue.



I am having the same issue, this issue is profoundly annoying, it works well today tomorrow it wont, as of now saving the flow fixes the issue temporarily but its not a long term solution, please please have a fix for this. 

I had this issue last week, then sporadic failures. If you look at the specific error message it gives you a hint as to what exactly the cause is. Support has not been useful as they will just go over the whole rebuild reconnect song and dance.


In my specific error it stated office svc failure:

Power Automate - Bad Gateway 502 -1.18.20.JPG

The body message gives detail of what exactly is failing as not all 502 gateways are created equal.

My issue was eventually sent over to the sharepoint group. Who knows if it belongs there as the issue has gone away on its own again.

Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,936)