closure-library icon indicating copy to clipboard operation
closure-library copied to clipboard

Do not fire success event when HTTP status code is zero

Open binarykitchen opened this issue 7 years ago • 0 comments

When XhrIo's send() function causes a HTTP status code of zero, it seems to mistakenly trigger the success event. In my opinion, it means there was no response. That said, I expect the error event to be triggered instead.

Or since it's not a defined error code, just the complete event without success/error events? Up to your discussion.

How to reproduce? I've been POSTing to a non-existing local path like /v2.0/me/messages/ using JSON.

binarykitchen avatar Jun 06 '18 03:06 binarykitchen