HttpClient GET Api is failing with {System.IO.IOException: Connection reset ---> Java.Net.SocketException: Connection reset error in .NET MAUI Android #26147
Labels
platform/android 🤖
s/needs-repro
Attach a solution or code which reproduces the issue
t/bug
Something isn't working
Description
HttpClient GET API is failing in .NET MAUI(.NET 8.0) which is working in Xamarin.Forms
Below is the sample code for your reference:
The line var responseMessage = httpClient.SendAsync(requestMessage, HttpCompletionOption.ResponseHeadersRead, cancellationToken.Token).ConfigureAwait(false); is throwing exception
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.100 SR10
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: