how to catch/evade Ajax error 7

how to catch/evade Ajax error 7

veloopityveloopity 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

  • allanallan Posts: 63,488Questions: 1Answers: 10,467 Site admin

    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

  • veloopityveloopity Posts: 87Questions: 36Answers: 2

    Best thing to do would be to check the server's error logs

    hmm I can't find anything there. On a Windows server with IIS, what might be the log that would contain ajax errors?

    -Michael

  • kthorngrenkthorngren Posts: 21,315Questions: 26Answers: 4,948
    Answer ✓

    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

  • veloopityveloopity Posts: 87Questions: 36Answers: 2

    thanks Kevin, I'll check it out

Sign In or Register to comment.