Getting errror in System.Net.Http.HttpRequestException: Error while copying content to a stream. ---> System.IO.IOException: The response ended prematurely.
Gaikwad, Sujit
0
Reputation points
Hi, I'm facing an issue from this morning, I have a web job written in the C# and it is throwing an exception for the post. When I checked in the backend, the call was successful at the remote system.
I'm not receiving this error if the API fails with an error status code.
Also, I checked the API call in the Postman it works as expected for bot the scenarios i.e. error or success
System.Net.Http.HttpRequestException: Error while copying content to a stream.
---> System.IO.IOException: The response ended prematurely.
Sign in to answer