17 Mar 2013 10:49 PM #1
Unanswered: Load event fires prematurely for long requests
I have a basic list that uses a store with ajax proxy setup to load json data. The timeout is set to 120000.
Everything works just fine on Chrome and Safari on my desktop, running against localhost. Depending on what the user enters, responses take anywhere from 10 seconds to 75 seconds, typically. Irrespective of how long it takes, things work just fine on my desktop.
On my iPhone (iOS 5) running against the server on my desktop, things work just fine for requests less then 12 or 15 seconds. Anything longer causes the "load" event to fire early, with data not loaded.
Any ideas on what's going on? Has anyone else experienced this problem? I have not had a timeout problem. I'm having to debug things on the safari debug console on an iPhone - not fun.
18 Mar 2013 1:29 PM #2
I wonder if you receive any data back when the load event fires.
Instead of debugging on the device, try using remote debugging - much easier
18 Mar 2013 5:28 PM #3
Thanks for pointing out better debugging options. Hopefully it'll make my life easier.
As for whether any data is returned, the answer is no. I get no data back at all. Another strange thing is that after repeated tests, I've noticed that the timeout happens at around 12.8 seconds, irrespective of the original request. I have no idea if there is anything special about 12.8 seconds. Any ideas?