Occasional Ajax error
Occasional Ajax error

Hello,
Been using DataTables since more than 2 years it always work flawlessly. But starting last week, I noticed a very strange issue whenever I try to view a table I get an error message "DataTables warning: table id=table_1 - Ajax error. For more information about this error, please see http://datatables.net/tn/7"
The message appear while the page is being rendered. A loading icon appears and then nothing happens. The loading icon will keep looping.
What makes this issue so strange is that sometimes the page load successfully but most of the time it doesn't. I'd say 1 out of 20 chances it'll work.
I've tried everything. I did what is being said on this page (Ajax Error) but sadly no luck.
I feel like maybe something is timing out before the page is fully loaded. Maybe I'm wrong but why would the table load sometimes and other times it doesn't? Strange.
This is the link to that page: Click Here
Here is another table on my website which has the same error: Click Here
Any idea?
Answers
The response I get for the first table is the Ajax error. Looking at the Developer Tools the response is 404 not found:
This is an error from the server. You will need to debug the server logs to find out why the page is not found. Or there is another error in the server causing the 404 not found.
The other page has this error:
Looking at the response in the browser's Developer Tools the response looks to be incomplete. Copied the response text into https://jsonlint.com/ it shows the end of the response is missing:
It abruptly ends without closing the arrays. Not sure why. You will need to start at the server to determine why the full JSON is not in the response.
Kevin