Skip to content

XMLHttpRequest network error handling #946

@jesus2099

Description

@jesus2099

I thought the “error” event would be thrown for network errors (status 0), but it is only thrown for server errors.

So, if I want to handle all XMLHttpRequest errors at one place, I can go back to using a single “readystatechange” listener with this.readyState === XMLHttpRequest.DONE (4):

https://github.com/search?q=repo%3Ajesus2099%2Fkonami-command+XMLHttpRequest&type=code

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions