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
bug(http) 404 error always appears in console even if caught #8832
Comments
This issue doesn't provide enough information to reproduce or debug the issue. GitHub issues are for bug reports and feature requests. |
This is just default browser behavior. See this plunker without angular or zones and the 404 is still logged: http://plnkr.co/edit/FUj5kgPPNyGzUnc3e07i?p=preview |
You could use GlobalErrorHandler that extends the |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
When trying to send a request to a url that returns 404 error, the error will always appear in console even if I catch it.
This behavior happens when using
@angular/http
, or even when using the nativeXMLHttpRequest
, Which makes me think it's a zone task issue.Please refer to this plunk
Expected/desired behavior
I think the error message should not appear in console if the error was caught.
The text was updated successfully, but these errors were encountered: