Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.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
Angularjs XMLHttpRequest:网络错误0x2ef3,无法完成操作,因为尝试上载excel时IE 11中出现错误00002ef3_Angularjs_Model View Controller - Fatal编程技术网

Angularjs XMLHttpRequest:网络错误0x2ef3,无法完成操作,因为尝试上载excel时IE 11中出现错误00002ef3

Angularjs XMLHttpRequest:网络错误0x2ef3,无法完成操作,因为尝试上载excel时IE 11中出现错误00002ef3,angularjs,model-view-controller,Angularjs,Model View Controller,在IE 11中上载记录数超过一定数量的excel(记录数较少的excel可以正常工作)时,控制台会抛出以下错误并中止请求 Network Error 0x2ef3, Could not complete the operation due to error 00002ef3 SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef

在IE 11中上载记录数超过一定数量的excel(记录数较少的excel可以正常工作)时,控制台会抛出以下错误并中止请求

    Network Error 0x2ef3, Could not complete the operation due to error 00002ef3 
    SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3. 
我正在使用以下代码上载excel

       function uploadFile(url, file, config) {
        var fdata = new FormData();
        fdata.append('file', file);
        var promise = $http({
            url: webRoot(url),
            method: 'POST',
            data: fdata,
            withCredentials: true,
            headers: { 'Content-Type': undefined, 'X-Requested-With': 'XMLHttpRequest' },
            transformRequest: angular.identity
        });
我在尝试后续POST请求之前发出GET请求,以避免安全证书问题


任何人请指导我解决这个错误。

我遇到了完全相同的问题。这是由于证书的OCSP服务器不可用造成的。一旦到达,一切都开始工作。OCSP服务器不可用只会导致IE出现问题。其他(现代)浏览器可能会忽略这一点。互联网上有关于如何使用$.ajax处理问题的代码片段,但我还没有找到使用angularjs$http服务的解决方案。我也有同样的问题。这是由于证书的OCSP服务器不可用造成的。一旦到达,一切都开始工作。OCSP服务器不可用只会导致IE出现问题。其他(现代)浏览器可能会忽略这一点。互联网上有关于如何使用$.ajax处理问题的代码片段,但我还没有找到使用angularjs$http服务的解决方案。