ie10 ajax,IE10/IE11 Abort Post Ajax Request After Clearing C

SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete

the operation due to error 00002ef3

No valid solution at the moment.

Update: Noticed on IE11 also.

After more and more investigation, I come with this results:

The problem is specific to my application, it does not happen on facebook.

The problem has nothing to do with max number of requests per host (I did sample page that flood the server, IE10 is able to handle up to 8-10 req at the same time, inside my application I also tried to do ajax requests serially, it failed also).

The problem is specific to POST requests.

The problem is not specific to the JS library used (I tried direct XMLHttpRequest from console it also failed).

The failure happened after xhr.send(), xhr.readyState = 4 and xhr.onreadystatechange triggered.

The failure is not related to any Content-type, proper requests or server configuration. It is only client, requesting dummy page will fail, with a bare minimum XHR, just xhr.open and xhr.send.

It happened mainly after clearing browser cache.

Doing GET request before POST does not solve this problem.

My questions are:

How browser cache may affect POST ajax requests?

Does any body have contact with IE developers to tell us what this error 'Network Error 0x2ef3' mapped to ?

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.

Steps to reproduce:

Make sure fiddler or proxy is disabled.

http://ie10.laiths.name/#!login

Open IE10 console, delete your browser cache.

Try this invalid login: random@rand.com/random

After 3-4 times (clear-cache/invalid-login) you will see this error: SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3.

My IE Version:

Win7 IE10 Version: 10.0.9200.16618

Update Version: 10.0.6 (KB2838727)

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.

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值