You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is impossible to obtain information about HTTP errors (401, 403 and some other) when something goes wrong and the "error" listener of the XMLHttpRequest is triggering. It affects different frameworks like axios. For example: axios/axios#4420 (comment)
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
130.0.2849.56
SDK Version
1.0.2420.47
Framework
Other
Operating System
Windows 11
OS Version
22631.4317
Repro steps
Open WebView's developer's console
Add the script
x = new XMLHttpRequest();
x.addEventListener("error", (e) => {
console.log(e);
});
x.open("POST", "<any URL which triggers HTTP 401 or 403");
x.send()
Expected result: The error listener will not be triggered at all (because these are application-level errors) or the "e" parameter of the function will contain some information about an exact HTTP status.
Actual result: The "e" parameter of the function has no information about an exact HTTP status which makes it impossible to differ application-level problems (HTTP codes) from network problems.
Additionally: Correct information is shown in console output at the same time: "POST net::ERR_FAILED 401 (Unauthorized)" so the code should be available for adding to the error.
Repros in Edge Browser
Yes, issue can be reproduced in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
What happened?
It is impossible to obtain information about HTTP errors (401, 403 and some other) when something goes wrong and the "error" listener of the XMLHttpRequest is triggering. It affects different frameworks like axios. For example: axios/axios#4420 (comment)
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
130.0.2849.56
SDK Version
1.0.2420.47
Framework
Other
Operating System
Windows 11
OS Version
22631.4317
Repro steps
x = new XMLHttpRequest();
x.addEventListener("error", (e) => {
console.log(e);
});
x.open("POST", "<any URL which triggers HTTP 401 or 403");
x.send()
Expected result: The error listener will not be triggered at all (because these are application-level errors) or the "e" parameter of the function will contain some information about an exact HTTP status.
Actual result: The "e" parameter of the function has no information about an exact HTTP status which makes it impossible to differ application-level problems (HTTP codes) from network problems.
Additionally: Correct information is shown in console output at the same time: "POST net::ERR_FAILED 401 (Unauthorized)" so the code should be available for adding to the error.
Repros in Edge Browser
Yes, issue can be reproduced in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: