Apology for the delay as I was discussing the repro with my team. I was able to repro the issue and looking into traces I can see that APIM is not getting any response from the backend service and timing out exactly at the 21 sec for every request. If I pass the same request that APIM is passing to the backend service http://www.dneonline.com/calculator.asmx then it works and the backend response correctly. This needs to troubleshoot from the backend service why it is not responding to the APIM request. I have tried to deploy my own services and verify that APIM is working as expected.
Trace
{
"source":"forward-request",
"timestamp":"2020-11-05T06:51:24.0659887Z",
"elapsed":"00:00:21.0275199",
"data":{
"messages":[
"Unable to connect to the remote server",
"Error occured while calling backend service.",
"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 45.40.165.23:80"
]
}
}