Intermittent issue with sort and search.

Intermittent issue with sort and search.

IrvinTLIrvinTL Posts: 8Questions: 2Answers: 0

Good evening,

I have been experiencing a weird intermittent error when sorting or searching:
SyntaxError: Unexpected end of JSON input
at parse (<anonymous>)
at jquery.min.js:2
at l (jquery.min.js:2)
at XMLHttpRequest.<anonymous> (jquery.min.js:2)

The error is caused by the returned JSON string being empty. However this issue only happens from time to time when sorting or searching. (Usually when we input too fast or click several times on the sort column.)

Link to sandbox demo: https://eco.tinoco.ca/

Using datatables version 1.10.20 with bootstrap integration

Datatables Client Side: https://pastebin.com/a6fkK6g2
Datatables Server Side: https://pastebin.com/RiDdZLV1
Server AJAX request response: https://pastebin.com/TwP2Rd3J

Any help is appreciated.

Answers

  • IrvinTLIrvinTL Posts: 8Questions: 2Answers: 0

    Just found out that it works perfectly fine in the localhost environment. The issue only occurs on hosted environment.

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Duplicate of this thread, please don't repeat threads!

    Colin

Sign In or Register to comment.