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