I am using angularjs to upload files to my API. On my page, I have a muti-file select, and once the user selects 1 or more files, the page calls my api and uploads them one request per file, something like (not my exact code):
var promises = [];
angular.forEach(files, function(value) {
promises.push(this.$http.post(this.baseApiUrl + '/files', fd)
.then((response: ng.IHttpPromiseCallbackArg<any>): any => {
return response.data;
})
}
This works fine in all browsers except IE (of course). In IE, if there are more than about 20 files, most of them will work fine, but a couple of the requests will get aborted. There doesn't seem to be any pattern, they will just randomly get aborted. The request actually makes it to the API, but the browser gives up on the request and acts like it failed (its not a timeout). The error IE gives me is: XMLHttpRequest: Network Error 0x2ee2, Could not complete the operation due to error 00002ee2.
Of course, I cannot find a list of XMLHttpRequest error codes, so i have no idea what 00002ee2 means. Any help is greatly appreciated.
2ee2 hex to decimal = 12002
IE aborting http post requests with error 0x2ee2
Code Error Message and Description 12002 ERROR_INTERNET_TIMEOUT The request has timed out.
FIX: Something stops server from answering. In my case the server was waiting on a break point in debug mode :)