Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What kind of network error is Chrome encountering when 'Status = (failed)' and 'Type = undefined'

Sometimes I randomly see network requests from Chrome failing with Status = '(failed)' (status code 0 from the request object in JavaScript) and the response type as 'undefined' . I cannot isolate why, my internet connection seems to be up and the same endpoint on the server works if requested from say cURL.

Viewing the request details does not show any more response information, only the request info.

I thought it might be missing CORS headers, but I have verified they are there and anyway on a CORS permission problem Chrome reports the status as '(cancelled)'.

Any thoughts? Is it just that the host is unreachable? Why does it seem that all retries from the web app also fail until the browser is restarted?

(failed) request status text in Chrome inspector

like image 910
Stephen Ierodiaconou Avatar asked Apr 12 '12 14:04

Stephen Ierodiaconou


People also ask

What does failed Network error mean?

"Network failed" If you see "NETWORK_FAILED" when you try to install something from the Chrome Web Store, unwanted software could be blocking the installation. To fix the error: First, remove the unwanted software. Then, try to install the app, extension, or theme again.

How do I fix a Network error?

Restart your device. Open your Settings app and tap Network & internet or Connections. Depending on your device, these options may be different. Turn Wi-Fi off and mobile data on, and check if there's a difference. If not, turn mobile data off and Wi-Fi on and check again.


1 Answers

I ran into this while working on an ad serving network. It ended up being the AdBlock Plus Chrome extension blocking any assets, probably the "ad" in the path. I whitelisted my domain and it worked.

like image 178
rob5408 Avatar answered Sep 27 '22 22:09

rob5408