IE11 HTTPS AJAX XMLHttpRequest: Network Error 0x2eff, Could not complete the operation due to error 00002eff

前端 未结 3 947

I have an ajax POST request that can take anywhere between 2 seconds to 30+ minutes. The post request occurs as a result of button click

If the request takes less th

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 07:11

    We spend multiple days searching for the cause of this problem!

    • In the console: SCRIPT7002: XMLHttpRequest: Network Error 0x2eff, Could not complete the operation due to error 00002eff.
    • In the network tab of IE/Edge, we see the failed request as 'Pending...'
    • XmlHTTPRequest/JQuery returns 404 error at the client, but the server returned a successfully 200 response.
    • No response headers returned

    We only had this problem when using all of these:

    • HTTP/2
    • POST requests
    • Windows 10
    • IE or Edge

    Apparently it is a Windows 10 bug in the HTTP stack that is now solved in Windows 10 version 1803 (April 2018). So normally this problem will disappear over time for people/companies using auto updates of Windows. used Windows 10 versions WorldWide

    We tested this on an older and newer version of Windows 10 and it is indeed solved.

    Some temporary solution could be:

    • disable HTTP/2 for IE and Edge and use HTTPS (server side change).
    • use GET (if possible)
    • does PUT also has this problem?
    • do some retries if no response headers are returned
    • accept that IE/Edge users will be punished ;-)

提交回复
热议问题