【问题标题】:Unable to access web api remotely无法远程访问 web api
【发布时间】:2017-12-12 03:55:03
【问题描述】:

我有一个Web api,已部署在服务器上。现在,当我尝试在本地访问它或通过服务器中的postman 提供IP 时,我能够得到响应消息。回复如下JSON

{
"data": {
    "Response": "No" // or it can be Yes
 }
}

现在当我尝试通过邮递员远程访问它(在我的系统上)时,我收到以下消息

无法得到任何回应 连接到 http://xxx.xx.xx.xxx:8080/api/meters/GetByMsn/002999000043/2017-12-11T17:38:57 时出错。 为什么会发生这种情况: 服务器无法发送响应: 确保后端正常工作 自签名 SSL 证书被阻止: 通过在“设置”>“常规”中关闭“SSL 证书验证”来解决此问题 代理配置不正确 确保在设置 > 代理中正确配置代理 请求超时: 在“设置”>“常规”中更改请求超时

为此,我搜索了许多文章/问题,但无法解决我的问题

解决方案如下

  1. Could not get any response
  2. Call to localhost:8000 "Could not get any response"
  3. "Could not get any response" from servers with SSL issues

任何帮助将不胜感激。

【问题讨论】:

    标签: json ssl proxy asp.net-web-api2 postman


    【解决方案1】:

    没有设置防火墙允许端口访问?

    【讨论】:

      猜你喜欢
      • 2017-02-28
      • 1970-01-01
      • 2020-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多