Skip to main content

Notifications

Power Automate - Using Connectors
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.

  • Franz30 Profile Picture
    Franz30 2 on at
    Re: Custom Connector using on-premises data gateway throws error 500 - bad gateway

    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

  • Enver-TR Profile Picture
    Enver-TR 85 on at
    Re: Custom Connector using on-premises data gateway throws error 500 - bad gateway

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics