-
Notifications
You must be signed in to change notification settings - Fork 5k
[release/9.0] [browser][http] mute JS exceptions about network errors + HEAD verb #113261
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
[release/9.0] [browser][http] mute JS exceptions about network errors + HEAD verb #113261
Conversation
Co-authored-by: campersau <[email protected]>
…ver/Handlers/EchoHandler.cs Co-authored-by: Alexander Köplinger <[email protected]>
Co-authored-by: campersau <[email protected]>
…ver/Handlers/EchoHandler.cs Co-authored-by: campersau <[email protected]>
Co-authored-by: campersau <[email protected]>
Tagging subscribers to this area: @dotnet/ncl |
cc @campersau |
@pavelsavara @lewing @steveisok Today is code complete for the April Release. If you want this fix included in this release, please get it approved by Tactics and merge it before 4pm PT. |
/ba-g CI failures are unrelated |
is this still going out in the april release or now in may release? |
@radderz May, we didn't make it into the previous release train |
Backport of #113014 to release/9.0
/cc @pavelsavara
Customer Impact
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.in Firefox when the verb is HEAD, the body is null. We should not fail because of that.
Passing
Response
as result ofhttp_wasm_fetch
is creating JS memory leak by marshaling the object.Fixes #112172
Contributes to #111992
Regression
Testing
Automated tests.
Risk
Low
Both issues are only triggered when user enabled streaming responses. That's opt-in feature in Net9 and below.