This question has been asked before in many different variations by other people but they are either unanswered or do not fit my situation.
I have set up a named target server using the Management API. A GET request gives me these details:
{
"host": "httpbin.org/get?show_env=1",
"isEnabled": true,
"name": "httpbin",
"port": 443,
"sSLInfo": {
"ciphers": [],
"clientAuthEnabled": false,
"enabled": true,
"ignoreValidationErrors": false,
"protocols": []
}
}
In my API proxy, control reaches the intended target endpoint and I have this code which references the named target server:
<HTTPTargetConnection>
<LoadBalancer>
<Server name="httpbin"/>
</LoadBalancer>
<Path/>
</HTTPTargetConnection>
However, I get a 503 Service Unavailable error. The request never leaves my API proxy according to Trace. Below is a screenshot just after my target request postflow from Trace:
If it helps, replacing the code in my API proxy with:
<HTTPTargetConnection>
<URL>https://httpbin.org/get?show_env=1</URL>
</HTTPTargetConnection>
works completely fine.