Asp.Net Core: Calling another REST-Api throws WebException

匿名 (未验证) 提交于 2019-12-03 01:09:02

问题:

I'm aware, that this exceptions are discussed in several other threads, but I can't get mine to work. My environment: I Have a ASP.NET Core REST-API (let's call it A), which calls another REST-API (let's call it B). Working with these two APIs, I have a Server in the internal network and my local development environment, also making use of Postman. Trying out the combiniations, I have the following behavior:

  • Local A calls local B --> Works
  • Local A calls Server B --> Error
  • Postman calls Server B --> Works
  • Server A calls Server B --> Error

Calls to A work locally and on the Server.

The error I get:

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