Getting Response code 0 in API manager wso2 while Trying to connect Through enterprise Proxy

半城伤御伤魂 提交于 2019-12-25 03:38:23

问题


Well ,

i m hitting a simple PhoneVerify Request from my localhost which have enterprise proxy .

i have configured my Proxy setting using below link.

Can't access to production endpoint with WSO2 API Manager - entreprise proxy

But I m Getting The Same Response code 0 and Blank Response Body.

Here Is a the curl and Request URL :

Curl

curl -X GET --header "Accept: application/json" --header "Authorization: Bearer b9d93ac569bec1721716e1422b852b"  "https://192.168.78.153:8244/phone/1.0.0/CheckPhoneNumber?PhoneNumber=8888888888&LicenseKey=0"

Request URL

https://192.168.78.153:8244/phone/1.0.0/CheckPhoneNumber?PhoneNumber=8888888888&LicenseKey=0

Response Body

no content

Response Code

0

Response Headers

{
  "error": "no response from server"
}

[ base url: /phone/1.0.0 , api version: 1.0.0 ]


回答1:


Since you are behind a proxy with port set through http.proxyPort, You have to use port 1234 instead of 8244.



来源:https://stackoverflow.com/questions/32990365/getting-response-code-0-in-api-manager-wso2-while-trying-to-connect-through-ente

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!