'ASP.NET Core Web API calls 3rd Party API fails sometime with "A connection attempt failed because the connected party did not properly respond after
ASP.NET Core Web API is deployed in Azure App Service.
There is an endpoint that call 3rd party API which fails sometimes and all other request success.
The exception say
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (test-xyz-abc.org:19443)
I tried named HttpClinet, static HttpClient and IHttpClientFactory.
If I call the 3rd party API from Postman with several iteration, it works.
The problem comes only when it is called from Web API. Could this be request timeout of the HttpClient / IHttpClientFactory or the API which calls 3rd party need to be increased?
Appreciate your help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
