Chrome Fail Error Codes

荒凉一梦 提交于 2019-12-04 07:06:01

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

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)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!