Json error but only sometimes

Json error but only sometimes

xionhackxionhack Posts: 5Questions: 0Answers: 0
edited October 2011 in General
Hi! I get this "DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error" error. But it doesnt happen always, if I click on the page that has the datatables for the first time today, it will happen, if i click again right away, it will show me the data in the table. I dont know if you understand what I mean, but the table is working, just that the error appear. I only have 1 value in the table just for test. Anybody has an idea?!

Replies

  • GregPGregP Posts: 500Questions: 10Answers: 0
    It's probably invalid JSON. ;-)

    Seriously, though, use a tool like Firebug or Chrome's Dev Tools to monitor the network activity (in Firebug GET and POST are conveniently shown right in the Console pane). Grab a copy of the JSON from when it works, and then a copy of the JSON from when it doesn't and do a strict comparison (a diff tool is all the better). Could be a missing parameter that you haven't noticed yet.
This discussion has been closed.