how to catch/evade Ajax error 7
how to catch/evade Ajax error 7
veloopity
Posts: 87Questions: 36Answers: 2
I sometimes get an Ajax error 7, sometimes not - with the same data: usually the error goes away on reloading. The console doesn't say anything. My feeling is that sometimes the server doesn't send data fast enough. Is there some way to catch/evade this type of error?
This question has an accepted answers - jump to answer
Answers
Best thing to do would be to check the server's error logs and determine why the error might be happening. To answer your specific question - no not really. There was an error from the server so DataTables is just reporting that.
Allan
hmm I can't find anything there. On a Windows server with IIS, what might be the log that would contain ajax errors?
-Michael
Follow the steps in the Ajax Error technote:
https://datatables.net/manual/tech-notes/7
You might be getting a 404 Not Found or 500 Server Error. Use the error found in the XHR response to find the error in your server's log. I'm not familiar with IIS but maybe this tutorial will help.
Kevin
thanks Kevin, I'll check it out