Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[browser][http] mute JS exceptions about network errors + HEAD verb #113014

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Feb 28, 2025

In browser HTTP client we subscribe for rejected promises in order to suppress unhandled rejection of AbortError when we issue the abort.
The current handler also handles other network errors and aborts the whole program, which is not what it should do.
Instead the network error should be propagated to managed HTTP client code.

Contributes to #112172
Contributes to #111992

This bug fix should be back ported.

@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-System.Net.Http os-browser Browser variant of arch-wasm labels Feb 28, 2025
@pavelsavara pavelsavara added this to the 10.0.0 milestone Feb 28, 2025
@pavelsavara pavelsavara self-assigned this Feb 28, 2025
@pavelsavara pavelsavara requested a review from maraf February 28, 2025 13:35
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@pavelsavara pavelsavara changed the title [browser][http] mute JS exceptions about network errors [browser][http] mute JS exceptions about network errors + HEAD verb Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-System.Net.Http os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants