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 / Custom Connector using...
Power Automate
Unanswered

Custom Connector using on-premises data gateway throws error 500 - bad gateway

(0) ShareShare
ReportReport
Posted on by 2

I created a custom connector using https and the on-premises data-gateway.

 

When testing the connector, the test fails with the following error:

... System.Net.WebException: The remote server returned an error: (502) Bad Gateway. ...

 

When analyzing the log-files of the on-prem data gateway I can see, that the protocol for the request was changed from https to http:

 

"[ {""ConnectorType"": ""HTTP"", ""FullPath"": ""http://esap001e21.xxxxx:44301/sap/opu/odata/SAP/Z_IM_RAUMVERRECHNUNG_SRV/ZCO_ODATA_ENTITY_GET_DATASe...')""} ]",Fail,35660.50,36213,35108,DirectQuery,,,,2

 

Any ideas, what causes the on-prem data gateway to change the protocol?

Thanks a lot.

badgateway.jpg
Categories:
I have the same question (0)
  • Enver-TR Profile Picture
    85 on at

    Hi @Franz30 ,

     

    Did you find a solution for this error? I am having the same issue with the https connection through on premise gateway. 

     

    Altough both http and https endpoints are active , i cant seem to go through with https

     

    Thanks

  • Franz30 Profile Picture
    2 on at

    Hi @Enver-TR ,

    no we didn't find a solution for this. We are actually using a work-around with PowerAutomate for Desktop. This allows us to use the API from within our company network and we don't need the on-prem data gateway.

     

    Cheers

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 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard