Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 各种SCRIPT7002:XMLHttpRequest:网络错误之间的差异_Javascript - Fatal编程技术网

Javascript 各种SCRIPT7002:XMLHttpRequest:网络错误之间的差异

Javascript 各种SCRIPT7002:XMLHttpRequest:网络错误之间的差异,javascript,Javascript,有很多SCRIPT7002:XMLHttpRequest:Network错误。 我和其他许多人一样,也在努力理解我的错误的含义和根本原因(尤其是00002efe/00002ef3) 我遇到了几个类似的错误: SCRIPT7002: XMLHttpRequest: Network Error 0x2f7d, Could not complete the operation due to error 00002f7d. SCRIPT7002: XMLHttpRequest: Network Erro

有很多SCRIPT7002:XMLHttpRequest:Network错误。 我和其他许多人一样,也在努力理解我的错误的含义和根本原因(尤其是00002efe/00002ef3)

我遇到了几个类似的错误:

SCRIPT7002: XMLHttpRequest: Network Error 0x2f7d, Could not complete the operation due to error 00002f7d.
SCRIPT7002: XMLHttpRequest: Network Error 0x2ee7, Could not complete the operation due to error 00002ee.
SCRIPT7002: XMLHttpRequest: Network Error 0x2efe, Could not complete the operation due to error 00002efe.
SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3.
SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete the operation due to error 00002efd.
SCRIPT7002: XMLHttpRequest: Network Error 0x2eff, Could not complete the operation due to error 00002eff.
SCRIPT7002: XMLHttpRequest: Network Error 0x2f76, Could not complete the operation due to error 00002f76.
SCRIPT7002: XMLHttpRequest: Network Error 0x2f78, Could not complete the operation due to error 00002f78.
我想了解是否有资源(文档)可以解释这些不同错误代码之间的区别及其含义


任何信息都将不胜感激。

好的,我想我找到了答案。这个解决方案当然不能涵盖每一个代码,但它可以为我提供我所需要的信息

以下是我采取的步骤:

步骤1)(在Win中)打开计算器并切换到程序员模式

步骤2)在计算器中选择“十六进制”选项

步骤3)从消息中复制错误代码。(以零开始的错误,例如00002efe)

步骤4)将错误代码粘贴到计算器中

步骤5)更改为“DEC”选项

步骤6)此时,您得到了错误的十进制值。 我发现了两个描述这些错误代码含义的网站。 现在,转到以下网页之一:

这是我搜索的结果:

00002f7d => 12157 > ERROR_INTERNET_SECURITY_CHANNEL_ERROR
The application experienced an internal error loading the SSL libraries.

00002efe => 12030 > ERROR_INTERNET_CONNECTION_ABORTED
The connection with the server has been terminated.

00002ef3 => 12019 > ERROR_INTERNET_INCORRECT_HANDLE_STATE
The requested operation cannot be carried out because the handle supplied is not in the correct state.

00002efd => 12029 > ERROR_INTERNET_CANNOT_CONNECT
The attempt to connect to the server failed.

00002eff => 12031 > ERROR_INTERNET_CONNECTION_RESET
The connection with the server has been reset.

00002f76 => 12150 > ERROR_HTTP_HEADER_NOT_FOUND
The requested header could not be located.

00002f78 => 12152 > ERROR_HTTP_INVALID_SERVER_RESPONSE
The server response could not be parsed.

希望这对某些人来说很方便

在我看来,直接使用calc的编程模式比特意使用calc更容易。您只需在数字前面加上
0x
,指定它是十六进制而不是八进制或十进制(前导0表示八进制),REPL就会返回十进制版本。您还可以
.toString(2)
其中
2
是所需的基数(
10
是默认值);-)。