SCRIPT7002:XMLHttpRequest:网络错误 0x2ef3,无法完成由于错误 00002ef3 导致的操作
SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3
目前没有有效的解决方案.
更新:在 IE11 上也注意到了.
Update: Noticed on IE11 also.
经过越来越多的调查,我得出了这个结果:
After more and more investigation, I come with this results:
我的问题是:
目前我正在做的临时解决方案是,如果 HTTP 状态代码为零,则最多重试 3 次.但这很丑陋,因为有时甚至上传请求都会失败,并且对于那些有重试的请求会变得很慢,有时会花费额外的100ms.
For now the temporary solution I am doing is simply retry for a max 3 times if the HTTP status code was zero. But it is very ugly because even upload requests sometimes failed, and it become slow for those requests with retry, sometimes it will take extra 100ms.
重现步骤:
我的 IE 版本:
如果 浏览器是 IE10
&&,现在我最多重试 3 次来解决它请求是POST
&&HTTP 状态码为 0
.
For now I am solving it by retrying a max of 3 times if the browser is IE10
&& Request is POST
&& HTTP status code is 0
.
如果有人可以帮助我删除我丑陋的解决方案,我将不胜感激,因为使用这样的解决方案,即使请求发送到服务器并返回 0,我也会重试(我试图通过测量之间的时间来避免这种情况xhr.send 及其回调,但它不可靠),如果 IE10 在 comptMode 下怎么办,如果 IE11 有同样的问题怎么办,再加上该性能,每次重试之间将在我的机器上花费约 170 毫秒.
I would appreciate if somebody can help me to remove my ugly solution, because with such solution even if the the request goes to the server and it returns 0 I will also retry (I was trying to avoid that by measuring the time between xhr.send and its callback but it is not reliable), what about if IE10 in comptMode, what about if IE11 has same problem, add to that performance, it will take on my machine ~170ms between each retry.
这可能是由于安全证书问题而发生的.如果您清除缓存,您会丢失部分(如果不是全部)证书信息.
This can be happening due a security certificate issue. If you clear the cache you loose part (if not all) of certificate information.
您可以在 http://www.jonnyreeves.co.uk/2013/making-xhr-request-to-https-domains-with-winjs/
基本上它说您必须在您的 POST 请求之前执行 GET 才能更新证书信息.
Basically it says you must do a GET before your POST request in order to update the certificate information.
这篇关于IE10/IE11 Abort Post Ajax 请求在清除缓存后出现错误“网络错误 0x2ef3"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!