Hi Team,
We are facing issue while calling backend url which is extenal to our network from MPGW. Where it is working fine and giving correct response in error cases like mismatching backend credentials in header, not passing mandatory fields in header. When we are passing all the correct params and payload we are encountering issue.
Below is the XSLT we used for Routing to backend.
<xsl:variable name="sslprofile">
<xsl:value-of select="$RouteURI/RouteInfo/route/sslprofile[@name=$ruleName]/."/>
</xsl:variable>
<!-- sslprofile: setting the client profile by using the service variable -->
<dp:set-variable name="'var://service/routing-url-sslprofile'" value="$sslprofile"/>
<!-- routing url: setting the routing url by concating the URL and URI with the use of service variable -->
<dp:set-variable name="'var://service/routing-url'" value="concat($OutBoundURL,$URI)"/>
<xsl:copy-of select="."/>
Error Response from DP:
<?xml version='1.0' ?>
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Body>
<env:Fault>
<faultcode>env:Client</faultcode>
<faultstring>Internal Error</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
Below are the logs wrote in DataPower Logs:
6:38:17 PM mpgw error DEV-SIT 4694256 error 172.16.98.57 0x01130011 mpgw (MPGW-External-API-NONPROXY): Failed to process response headers
6:38:17 PM mpgw error DEV-SIT 4694256 172.16.98.57 0x80e00126 mpgw (MPGW-External-API-NONPROXY): Valid backside connection cannot be established: Failed to process response headers, url: https://hostname/farmyieldreport/1.3/en
6:38:17 PM mpgw error DEV-SIT 4694256 172.16.98.57 0x80e00626 mpgw (MPGW-External-API-NONPROXY): Error occurred when connecting to URL 'https://hostname/farmyieldreport/1.3/en'
6:38:17 PM mpgw error DEV-SIT 4694256 172.16.98.57 0x80e0062a mpgw (MPGW-External-API-NONPROXY): The header is empty when connecting to URL 'https://hostname/farmyieldreport/1.3/en'.
If we use gatewayscript url-open we are getting below error in the same case:
{
"errorMessage": "The URL open() function cannot read the response from the stream. Error: Read from network stream timeout",
"errorCode": "0x8580004e",
"errorDescription": "The URL open() function cannot read the response from the stream",
"errorSuggestion": "This error can be caused by an external entity (a remote server experiencing problems) or an internal issue. Check the log for additional messages on this same transaction for further clarification."
}
Any inputs will be helpful.
------------------------------
Stefen Salvatore
------------------------------