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 Apps / On-Premise Data Gatewa...
Power Apps
Answered

On-Premise Data Gateway with Custom REST API Connector

(1) ShareShare
ReportReport
Posted on by 23

I have a Custom REST API Connector which connects to an on-premise API and works fine with our test system via our On-Premise Gateway. However, when I setup the connector to connect to a production system, I get an error from the On-premise Gateway as follows:

 

response header:

{
"cache-control": "no-cache,no-store",
"content-length": "447",
"content-type": "application/json; charset=utf-8",
"date": "Thu, 04 Jul 2024 16:44:52 GMT",
"expires": "-1",
"pragma": "no-cache",
"strict-transport-security": "max-age=31536000; includeSubDomains",
"x-content-type-options": "nosniff",
"x-frame-options": "DENY",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "false",
"x-ms-connection-gateway-object-id": "c6f54a1c-892a-492e-9b48-cafa5bf15933",
"x-ms-request-id": "074f39c0-4925-4cbb-bea4-81bc7bbf8697"
}

response body

{
"status": 500,
"message": "Received error payload from gateway service with ID 2601503: <ccon>An error occurred while sending the request.</ccon>.\r\nclientRequestId: 074f39c0-4925-4cbb-bea4-81bc7bbf8697",
"error": {
"message": "Received error payload from gateway service with ID 2601503: <ccon>An error occurred while sending the request.</ccon>."
},
"source": "gatewayconnector-scus.azconn-scus-001.p.azurewebsites.net"
}

 

The API works fine if you connect to it directly from on-premise. 
I have tried search for this error and nothing. 

thxmike_0-1720111776085.png

 

 

How do you troubleshoot something like this? Where would I get logs for this type of error? Is there a way to trace the request?

 

Any assistance would be appreciated?

 

Categories:
I have the same question (0)
  • Verified answer
    thxmike Profile Picture
    23 on at

    After digging into this, I found out that there was a typo. Doh. I wish the error was a little more clear

  • Michael E. Gernaey Profile Picture
    53,978 Moderator on at

    HI @thxmike 

     

    A couple of things

     

    1. You mentioned that it works from Onpremis, but did you say it also works from the Cloud (in Dev/Test) Correct?

     

    2. Does your API do any logging? I ask because the first thing would be to look there. Assume its getting there and look at what the API is doing with it

     

    3. Do you by chance have any VM's in the cloud? Ones that you could use PostMan on to do some testing? Or is this API important enough to get approval for a small VM for a few days time (wouldn't cost much)

     

    4. When in Test, is the API Cert protected??? SSL??? If so is there any chance in Production you don't have the certs? 

     

    5. What user account is this running as in Production? Is it different than Dev/Test?

     

    6. You should be able to run the Gateway install service and go to Diagnostics and export the logs as well as look at the status.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard