How to debug "DataTables Warning: Table id=xxx - Error"?
How to debug "DataTables Warning: Table id=xxx - Error"?
Hi Allan and Community,
I'm upgrading DataTables from 1.9.x to 1.10.7. I've hit a warning popup: "DataTables Warning: Table id=xxx - Error." I'd appreciate suggestions/tips for debugging.
The Bookmarklet Debug code: usekog (https://debug.datatables.net/usekog)
Of the dozen or so pages I've upgraded, only one throws this message. I've tried DataTables versions 1.10.6 and 1.10.7, and jQuery versions 1.11.x and 2.3.x, and dataTable 1.9 and the 1.10 javascript syntax, . All seem to generate the same error. I've checked the AJAX -- the server returns http status 200, the debugged AJAX request looks ok. After I OK the popup, the datatable renders.) The test case has eight records. I suspect it's an out of memory error / call stack overflow from the jsquery calls.
Examples a page that works with 1.9 and one that throws the error (1.10): https://www.retrieverresults.com/rr/profile/profile/d/23601 (this works. the DataTable is under the detail tab): https://www.retrieverresults.com/t2/profile/profile/d/23601 (this breaks)
Thanks for the help!
Russ
This question has an accepted answers - jump to answer
Answers
Your Ajax response contains:
That is where the error message is coming from. DataTables will just show whatever error message is set by the server. To "fix", don't set an error message :-)
Allan
Thanks, Allan! I feel silly for overlooking the obvious--Russ