Open aneeketMangalAtMS opened 1 month ago
Is this against some publicly reachable server? This is going to be difficult to diagnose without a repro.
If this reproduces without SSL, can you collect wireshark packet captures and share them?
Added the wireshark trace
Confirmed with the logs from downstream API, that the request is indeed reaching the servers but somehow HttpClient is throwing an exception.
what server are you connecting too @aneeketMangalAtMS ? There is way too much noise in the capture. (you can capture relevant exchange using filer host my server.com
.
And is this large PUT or POST by any chance? If so, try to add 100Continue
.
My bad, kindly use this display filter ip.dst == 52.102.22.25
It is a get request @wfurt
It is server who closes the connection. Since it is TLS it is hard to know what is exactly happening. I think next step would be to peek inside of the TLS. Since this is WSL e.g. Linux https://github.com/dotnet/runtime/issues/37915 should work - wither stock 9.0 or you would need to build 8.0 debug build if you cannot upgrade. Alternatively, the post has reference to PcapStream and that should work on either version.
Description
We are trying to call a GET endpoint inside our service code (NetCore 8). And we are getting the following exception
We tried making the same request with Postman, Insomnia and curl and it works pretty fine there. But surprisingly does not work in NetCore runtime. We call several other GET APIs via httpClient in our c# code and they all work fine.
Setup NetCore version : 8 Docker, WSL
Things I have tried:
Reproduction Steps
NA
Expected behavior
The call should have succeeded and shouldn't have thrown this exception.
Actual behavior
Throwing an exception
Regression?
Used to work in NET Framework.
Known Workarounds
No response
Configuration
NetCore 8.0.3 Docker, Linux
Other information
One observation