Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

502 Bad Gateway while connecting from PowerApps and Flow



I am getting strange issue while calling Flow from PowerApps.


I am not getting this error message on all machines. Only particular machines are getting this error message. I tried using 2 different machine/laptop connected to same network. On one laptop PowerApps able to connect to flow and get data but same is not properly working on other laptop. This was working fine on all machine till last week.


App is using Flow to interact with SQL database. I have stored procedure that is being called in Flow. While going to run history in PowerAutomate I could not find any error message and even test are running fine. 


I double checked all IP listed on and whitelisted them in my azure portal's sql database instance. All machine where i tested is connecting to below remote machine. Do need to whitelist this IP address? Are there any other IPs I have to whitelist ?


Below is other details.

Request URL:

HTTP Version: http/2.0

Request method: POST

Remote Address:


below is additional details.


  "error": {
    "code": 502,
    "source": "",
    "clientRequestId": "15351f42-04e3-429d-9ab0-2d160f5b391a",
    "message": "BadGateway",
    "innerError": {
      "error": {
        "code": "NoResponse",
        "message": "The server did not received a response from an upstream server. Request tracking id '08586002116958389265841559180CU103'."



Please suggest possible fix to resolve this issue.



Priyank Bhat


Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (10,016)