NOTE. For this website, http://www.redbullracingshop.com.au/
I have .net WebApi working with front-end angular $ .http interaction. Recently, a client mentioned that the dynamic function of a site has stopped working in IE.
After running the code in multiple browsers and viewing requests. I noticed this in IE. The request "Post" hung or "waited" for about 2 minutes before returning the result to the client. I ran the code with some break point on the server and javascript to find where it is blocking, and found that the request was working fine and the server code was executing as expected. There is nothing here.
Excerpt from SERVER
[AcceptVerbs("POST")] public void AddToCart(JObject jsonData){
I return a void or 204 response. This is what I expect, and I do not consider this a mistake. Is there a 2-minute chest somewhere between the server and the client receiving the response?
Perhaps this is an angular bug?
CUSTOMER MESSAGE
this.post = function (url, data, success, fail) { fail = (fail !== undefined) ? fail : success; $http.post(url, data) .success(function (data) { if (data.length == 0) { success(onEmpty(url)); } else { success(data); } }) .error(function (data) { fail(onError(url, data)); }); }
I researched and found that this only happens in IE10 and not in the actual version of the previous version, unlike the emulated version from the dev console.
I know that IE does some interesting things with 204 answers, and that could change in IE10. Here https://github.com/angular/angular.js/issues/357?source=cc
The results of the network inspector are as follows:
/ api / CartApi / AddToCart | POST | 204 | 295 B | 384.76 s | XMLHttpRequest
Any ideas? If all else fails, I will have to try converting all of these invalid WebAPI responses to blank lines.