IE10 / IE11 Abort Post Ajax request after clearing the cache with the error "Network Error 0x2ef3"

SCRIPT7002: XMLHttpRequest: network error 0x2ef3, operation could not be completed due to error 00002ef3

There is currently no valid solution.

Update: Seen also in IE11.

After more and more research, I came up with these results:

  • The problem is specific to my application, this does not happen on facebook.
  • The problem has nothing to do with the maximum number of requests to the host (I made an example page flooding the server, IE10 is able to process up to 8-10 requests at the same time, inside my application, which I also tried to do, ajax requests in series, this also failed )
  • The problem is with POST requests.
  • The problem is not specific to the JS library used (I tried direct XMLHttpRequest from the console, but also failed).
  • The failure occurred after xhr.send (), xhr.readyState = 4, and xhr.onreadystatechange are started.
  • The failure is not related to any content types, correct requests or server configuration. Only the client requesting the dummy page fails, with minimal XHR, just xhr.open and xhr.send.
  • This happened mainly after clearing the browser cache.
  • Running a GET request before POST does not solve this problem.

My questions:

  • How can browser cache affect ajax POST requests?
  • Does any authority have contact with IE developers to tell us what this "Network Error 0x2ef3" error was related to?

Currently, the workaround I am executing is simply retrying a maximum of 3 times if the HTTP status code was zero. But this is very ugly, because sometimes download requests are sometimes not executed, and for these requests with repetition, they become slow, sometimes it takes an additional 100 ms.

Steps to play:

  • Make sure the script or proxy is disabled.
  • http://ie10.laiths.name/#!login
  • Open the IE10 console, delete the 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, the operation could not be completed due to error 00002ef3.

My version of IE:

  • Win7 IE10 Version: 10.0.9200.16618
  • Update Version: 10.0.6 (KB2838727)

At the moment, I am solving it by repeating a maximum of 3 times if browser is IE10 && Request is POST && HTTP status code is 0 .

I would appreciate if someone could help me remove my ugly solution, because with such a solution, even if the request is sent to the server and it returns 0, I will also try again (I tried to avoid this by measuring the time between xhr. send and its callback, but it is not reliable), but what if IE10 is in comptMode, and what if IE11 has the same problem, add to this performance, it will take my machine ~ 170ms between each attempt.

+26
javascript post ajax internet-explorer-10
May 01 '13 at 4:55
source share
4 answers

This may be due to a security certificate issue. If you clear the cache, you will lose some (if not all) of the certificate information.

Further information (and a workaround) can be found at http://www.jonnyreeves.co.uk/2013/making-xhr-request-to-https-domains-with-winjs/

This basically means that you should do a GET before a POST request to update the certificate information.

+10
May 29 '13 at 15:50
source share

I had this problem, an AJAX Post request that returned some JSON will fail, eventually returning an interrupt with:

SCRIPT7002: XMLHttpRequest: network error 0x2ef3

error in the console. In other browsers (Chrome, Firefox, Safari) the exact same AJAX request was ok.

Further research showed that there was no status code in the response - in this case it should have been 500 internal errors.

This was created as part of a C # web application using a service stack for which an error code should explicitly be set.

IE seemed to leave the connection open, eventually the network layer closed it, and it β€œaborted” the request; despite receiving content and other headers.

Updating the web application to correctly return the status code resolves the issue.

There may be a problem with how IE handles headers in messages.

Hope this helps someone!

+1
Sep 22 '15 at 1:08
source share

I have the same problem and I try to defeat it within a week, but now I have no result, except for one addition to you results, its correction, if I add the site to the intranet zone, or another solution that I open to configure the browser , go to the Security section than click "OK", and the request is sent ... the same error in IE 11

0
Feb 13 '14 at 14:10
source share

We're experiencing the same problem in IE 10 with our mobile polling tool , Poll Anywhere

I posted the answer to this bug report in Microsoft Connect. If you can reproduce this error, indicate it on the Microsoft Connect website to speed up the resolution.

0
Apr 04 '14 at 3:55
source share



All Articles