Skip to content

XMLHttpRequest network error handling #946

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions