I have set https url in the target server with port 443 but while triggering the request it is still coming as http://httpbin.org/get .
I also try to update the target server from Apigee SmartDoc ui and getting the below response:
HTTP/1.1 200 OKAccess-Control-Allow-Headers:originAccess-Control-Allow-Methods:GETAccess-Control-Allow-Origin:*Access-Control-Max-Age:3628800Connection:keep-aliveContent-Length:249Content-Type:application/jsonDate:Tue, 29 Jan 2019 14:49:13 GMTServer:Apigee LB{ "host": "httpbin.org", "isEnabled": true, "name": "target2", "port": 443, "sSLInfo": { "ciphers": [], "clientAuthEnabled": "false", "enabled": "true", "ignoreValidationErrors": false, "protocols": [] } }
Please let me know what to do in this case:
Attaching screenshot of my Targetserver and trace
@Anil Sagar @ Google : Please suggest
Solved! Go to Solution.
Can you provide your HTTPTargetConenction config.
Did you add SSLInfo tag?
<HTTPTargetConnection> <Properties/> <LoadBalancer> <Server name="Product-Availability"/> </LoadBalancer> <Path>/v1/availability</Path> <SSLInfo> <Enabled>true</Enabled> </SSLInfo> </HTTPTargetConnection>
Note: In the Edge UI, if <URL>
specifies the HTTPS protocol, the UI does not automatically insert the <SSLInfo>
block. By default, the value of <Enabled>
is true
if <URL>
specifies HTTPS. However, all the examples below explicitly set the value of <Enabled>
to true
.
Can you provide your HTTPTargetConenction config.
Did you add SSLInfo tag?
<HTTPTargetConnection> <Properties/> <LoadBalancer> <Server name="Product-Availability"/> </LoadBalancer> <Path>/v1/availability</Path> <SSLInfo> <Enabled>true</Enabled> </SSLInfo> </HTTPTargetConnection>
Note: In the Edge UI, if <URL>
specifies the HTTPS protocol, the UI does not automatically insert the <SSLInfo>
block. By default, the value of <Enabled>
is true
if <URL>
specifies HTTPS. However, all the examples below explicitly set the value of <Enabled>
to true
.
@Siddharth Barahalikar
Thanks for the help , i tried this yesterday it was throwing 503 error. Today i deleted the target server and followed the same step it worked for me .
Step: -
@Ankit Dwivedi , check the case of the sslinfo attribute. It should be
"SSLInfo"