Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Fail Error Codes

I've been searching for a while now and I can't find the exact list of all fail to load error code/error description of google chrome.

I'm talking about this the highlighted text

enter image description here

Can someone give me a link?

like image 904
Gilbert Mendoza Avatar asked Mar 01 '17 05:03

Gilbert Mendoza


2 Answers

By the way for only listing all error codes

USE :

chrome://network-errors/

It's about 220 in total as of now in chrome version (69.0.3497.100)

like image 66
Rahul_Dange Avatar answered Oct 22 '22 09:10

Rahul_Dange


I did some digging and I must admit, it's not easy to find a full exhaustive list of all (Chromium) networking error codes.

The full list of all Chromium error codes can be found in the file net_error_list.h: https://cs.chromium.org/chromium/src/net/base/net_error_list.h

It looks like Google Chrome prepends ERR_ to all the codes listed in the above list.

However, error codes in XHR error responses are slightly different. These codes follow the format of the linux system file errno.h as defined by POSIX.1-2001, or C99: http://man7.org/linux/man-pages/man3/errno.3.html

Finally, some common NodeJS errors have been listed at the NodeJS API Documentation: https://nodejs.org/api/errors.html#errors_common_system_errors

I'd like to end this answer with a simple comparison example. The error of an operation timeout would be named as follows by the listed 'standards':

  • TIMED_OUT internally in Chromium.
  • ERR_TIMED_OUT displayed in Google Chrome.
  • ETIMEDOUT in the XHR error object (error.code).

Using your example:

  • CONNECTION_REFUSED -> internally in Chromium
  • ERR_CONNECTION_REFUSED -> displayed in Google Chrome
  • ECONNREFUSED -> in linux (POSIX.1) or network error stacks
like image 20
Sander Avatar answered Oct 22 '22 08:10

Sander