最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - XMLHttpRequest: Network Error 0x2f78, Could not complete the operation due to error 00002f78 in IE and net::ERR_UNE

programmeradmin0浏览0评论

In our application we are facing one issue. In my local eclipse whole application is working fine. But in Prod server we are facing this issue-When I want to load one page it is throwing error. The problem is that we are getting different errors in both IE and Chrome.

In chrome we are getting below error

In IE we are getting below error

I tried to fix IE error by adding something like below code

$.ajax({
url:url,
type:"POST",
data:data,
contentType:"application/json; charset=utf-8",
dataType:"json",
success: function(){
  ...
}
});

But it is not working. Please help.

In our application we are facing one issue. In my local eclipse whole application is working fine. But in Prod server we are facing this issue-When I want to load one page it is throwing error. The problem is that we are getting different errors in both IE and Chrome.

In chrome we are getting below error

In IE we are getting below error

I tried to fix IE error by adding something like below code

$.ajax({
url:url,
type:"POST",
data:data,
contentType:"application/json; charset=utf-8",
dataType:"json",
success: function(){
  ...
}
});

But it is not working. Please help.

Share Improve this question asked Mar 17, 2017 at 6:08 Mahesh NarayananMahesh Narayanan 1337 silver badges22 bronze badges 4
  • Have you tried removing some params? Like contentType? – Justinas Commented Mar 17, 2017 at 6:09
  • yes.But still it is not working. It is working fine in Local environment. – Mahesh Narayanan Commented Mar 17, 2017 at 6:17
  • But in Prod and SIT environment it is throwing these errors – Mahesh Narayanan Commented Mar 17, 2017 at 6:18
  • What does network tab requests shows? – Justinas Commented Mar 17, 2017 at 7:12
Add a ment  | 

3 Answers 3

Reset to default 4

I was able to produce this issue/error on demand while testing server request timeout.

I set my local Glassfish 4.1 request timeout to 30 seconds and I created an ajax (POST) call that took over 60 seconds to plete.

I got the same error. I would remend to check your server's "Request timeout" value and check how long your requests take in the Dev Tools (Network tab)>

My local instance of Glassfish 4.1:

Error displayed in the IE console:

Network tab in IE Dev Tools:

Hopefully, this be useful to further troubleshooting of your issue.

XMLHttpRequest is not working at all when sending with GET methods and parameters which include accents (é,à,ç, ...). You have to use POST method to make it work.

Disabling Https/2 resolved this issue

Some how IE 11 and Https/2 is not playing well in my case

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论