admin管理员组文章数量:1305973
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
3 Answers
Reset to default 4I 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
本文标签:
版权声明:本文标题:javascript - XMLHttpRequest: Network Error 0x2f78, Could not complete the operation due to error 00002f78 in IE and net::ERR_UNE 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741814470a2398991.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论