Skip to content

[Bug] HttpClient crashes on Android #1260

@gviddy

Description

@gviddy

Description

The app crashes on Android when I try to make an HttpClient call. It works fine on Windows.

Steps to Reproduce

1, private readonly HttpClient _httpClient = new HttpClient();
2. var response = await _httpClient.GetAsync("https://www.google.com.au");
3. The above line causes the app to crash with no exceptions/errors. Just a clean crash.
4. Nothing interesting can be seen in the logs.

Expected Behavior

Expect it to work like it does for Windows. The same code works fine on WinUI3.

Actual Behavior

Crashes on Android Emulator.

Basic Information

.NET MAUI Preview 4
maui-check (Everything is OK)

Please note I created the project from Visual Studio 2019 Preview. No other code/xml has been changed.

Metadata

Metadata

Assignees

Labels

p/1Work that is important, and has been scheduled for release in this or an upcoming sprintplatform/androids/needs-infoIssue needs more info from the authort/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions