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.
Solved! Go to Solution.
Hi Edward, This might solve your problem
While creating target server give the host name without path:
"host : httpbin.org"
In proxy modify the target reference with "path" element:
<HTTPTargetConnection> <LoadBalancer> <Server name="httpbin"/> </LoadBalancer> <Path>/get?show_env=1</Path> </HTTPTargetConnection>
For more info refer this.
Hi Edward, This might solve your problem
While creating target server give the host name without path:
"host : httpbin.org"
In proxy modify the target reference with "path" element:
<HTTPTargetConnection> <LoadBalancer> <Server name="httpbin"/> </LoadBalancer> <Path>/get?show_env=1</Path> </HTTPTargetConnection>
For more info refer this.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |