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.

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?