Few weeks back i was calling the APIs from my code which was working fine.Now all of a sudden it stopped working.
The exception that i am getting is as follow:
“{“Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.”}”
Below is the code that i am using:-
client.DefaultRequestHeaders.Add(“Accept”, “application/json”); client.DefaultRequestHeaders.Add(“Authorization”, "Bearer " + Properties.Settings.Default.FABMAN_APIKEY);
string response = await client.GetStringAsync(url);
Please let me know i need to do some change from my end.This is the same code that was working few days back.
I doubt that it’s a problem on our side. We haven’t changed anything and many others can still use the API normally.
Maybe something in your network infrastructure has changed. Your description doesn’t contain much information. What endpoints are you calling? Does it happen on every request?
Can you test the request vial cURL from a different machine? (eg. your local development machine)