Quantcast
Viewing all articles
Browse latest Browse all 82130

State Saving causing sporadic and quiet errors

We are using datatables to list out users' contacts. When a row is click, an ajax call is made and contact details are rendered. Users love it!

We enabled statesaving, and it works great for keeping sorted and filtered contacts. However, we are seeing that after a certain number of successful requests (anywhere from 3-100+) the requests will start failing. Subsequently, cache and cookies must be cleared before any requests originating from the datatable can be made again. I'm not sure what info would be most helpful, so here's a list of our observations

-Datatables debugger code: idiboh
-All failed requests get a response status "0"
-User is still logged in and other requests can still be made (contact actions, control panel) so I don't think it is related to devise/login or CSRF
-Deleting the sprymedia datatables cookie specifically can fix the problem
-setting bStatesave as false fixes the issue.
-After the requests start failing, future requests do not even hit the server. The browser seems to stop it.
-After requests start failing, even non AJAX requests for contacts will fail (no data received error)
-Happens more frequently on production than on localhost/development but still replicatable on both
-Chrome seems to be the most resilient (most requests before fail), followed by firefox, then safari.

Happy to provide any other information anyone thinks might be helpful.

Austin

Viewing all articles
Browse latest Browse all 82130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>