Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

502 Bad Gateway

I have a flow that, when somebody in our internal team answers a form, gets the response details and sends an email to our internal inbox. My internal testing was going well, up until yesterday somebody used the form and it failed. Now, every time we use the form, it fails over and over again, always at the same step, where it gets the response details.


I'm getting these this error under the 502:


"error": {
"code": 502,
"message": "{\r\n \"error\": {\r\n \"code\": 502,\r\n \"source\": \"\",\r\n \"clientRequestId\": \"d3cc4e4b-d4cc-4f5a-8157-54f179e96a09\",\r\n \"message\": \"BadGateway\",\r\n \"innerError\": {\r\n \"error\": {\r\n \"code\": \"607\",\r\n \"message\": \"Failed to get all responses. Inner Message: AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '166f1b03-5b19-416f-a94b-1d7aa2d247dc'.\\r\\nTrace ID: 366d4f5a-859e-4ff8-8e42-31aa27362e00\\r\\nCorrelation ID: a544a049-fcd3-448d-a02c-a3aef6bdd587\\r\\nTimestamp: 2019-03-22 17:21:47Z\"\r\n }\r\n }\r\n }\r\n}"
Note that my office has always used MFA, so I don't know why this became a problem just now.
Community Support Team
Community Support Team

Re: 502 Bad Gateway

Hi @mgotao ,


First check if MS Form has been changed, such as moving Form to Group forms.

If so, check if the configuration of corresponding Flow also needs to be changed.

In addition, the error message mentioned in authentication seems to have some issues, you could try to update or re-create the connection of MS Forms related actions.

Please take a try and feel free let me know if issue still exists.


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.

Helpful resources


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,387)