【问题标题】:Getting Response code 0 in API manager wso2 while Trying to connect Through enterprise Proxy尝试通过企业代理连接时在 API 管理器 wso2 中获取响应代码 0
【发布时间】:2015-10-07 10:54:27
【问题描述】:

嗯,

我正在从我的本地主机发出一个简单的 PhoneVerify 请求,该请求具有企业代理。

我已经使用下面的链接配置了我的代理设置。

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

但我得到相同的响应代码 0 和空白响应正文。

这是一个 curl 和请求 URL:

卷曲

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"

请求网址

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

响应正文

没有内容

响应代码

0

响应标头

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

[基本网址:/phone/1.0.0,api版本:1.0.0]

【问题讨论】:

    标签: api proxy wso2 http-proxy wso2-am


    【解决方案1】:

    由于您位于通过http.proxyPort 设置端口的代理后面,因此您必须使用端口 1234 而不是 8244。

    【讨论】:

    • 在这种情况下我需要在哪里进行更改...??
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-18
    • 1970-01-01
    • 2020-10-04
    • 2020-02-27
    • 2011-08-10
    • 2011-07-18
    相关资源
    最近更新 更多