Help for chrome XHR request failure with status == 0

1,294 views
Skip to first unread message

Di Pan

unread,
Jun 14, 2017, 1:19:59 AM6/14/17
to net...@chromium.org
Hi, Folks:

I have a question on xhr request failed with xhr.status == 0 on Chrome. I reach out to this mailing list and hope it is the right place to ask this question.

In Hangouts Meet, we saw a certain sample of users' XHR requests failed with xhr.status == 0 on Chrome. Based on my understanding, the XHR request actually fails to be sent out in Chrome when xhr.status = 0. The xhrio.lastErrorCode is set as goog.net.ErrorCode.HTTP_ERROR (https://cs.corp.google.com/piper///depot/google3/javascript/closure/net/xhrio.js?rcl=155141300&l=871)

But we are not clear what's the root cause of this error and how to mitigate it.

I wonder did you guys hear the same problem reported from other teams, or do you have any idea 
about the potential cause? 

I really appreciate any suggestions and insights about this issue. Thank you so much!

Di

PhistucK

unread,
Jun 14, 2017, 2:49:38 AM6/14/17
to Di Pan, net-dev
I believe it means that there was either a network, security (HTTPS tried to reach HTTP, or HTTPS with a not-previously-approved SSL error) or DNS error. Maybe the network was temporarily down.


PhistucK

--
You received this message because you are subscribed to the Google Groups "net-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-dev+unsubscribe@chromium.org.
To post to this group, send email to net...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/net-dev/CAO26XU4_6y0VUqsQYTNntggN4nyTyd%3Dec6_9iM-xd4Om4AZVhw%40mail.gmail.com.

Takeshi Yoshino

unread,
Jun 14, 2017, 3:14:39 AM6/14/17
to PhistucK, Di Pan, net-dev
On Wed, Jun 14, 2017 at 3:48 PM, PhistucK <phis...@gmail.com> wrote:
I believe it means that there was either a network, security (HTTPS tried to reach HTTP, or HTTPS with a not-previously-approved SSL error) or DNS error. Maybe the network was temporarily down.



As PhistucK said, it can be 0 for various reasons. You might be able to see some log about the root cause at the console.
 
PhistucK

On Wed, Jun 14, 2017 at 8:19 AM, 'Di Pan' via net-dev <net...@chromium.org> wrote:
Hi, Folks:

I have a question on xhr request failed with xhr.status == 0 on Chrome. I reach out to this mailing list and hope it is the right place to ask this question.

net...@chromium.org is a public mailing list. Let me do follow up about the code internal to Google (though it's part of the closure library which is open sourced) at the internal mailing list.
 

In Hangouts Meet, we saw a certain sample of users' XHR requests failed with xhr.status == 0 on Chrome. Based on my understanding, the XHR request actually fails to be sent out in Chrome when xhr.status = 0. The xhrio.lastErrorCode is set as goog.net.ErrorCode.HTTP_ERROR (https://cs.corp.google.com/piper///depot/google3/javascript/closure/net/xhrio.js?rcl=155141300&l=871)

But we are not clear what's the root cause of this error and how to mitigate it.

I wonder did you guys hear the same problem reported from other teams, or do you have any idea 
about the potential cause? 

I really appreciate any suggestions and insights about this issue. Thank you so much!

Di

--
You received this message because you are subscribed to the Google Groups "net-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-dev+unsubscribe@chromium.org.
To post to this group, send email to net...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/net-dev/CAO26XU4_6y0VUqsQYTNntggN4nyTyd%3Dec6_9iM-xd4Om4AZVhw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "net-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-dev+unsubscribe@chromium.org.
To post to this group, send email to net...@chromium.org.
Reply all
Reply to author
Forward
0 new messages