PDA

View Full Version : Ext.Ajax.request fails with responseText=undefined



guys2008
20 Nov 2010, 4:29 AM
Hey,

I'm trying to solve this issue for hours now :

I have a standard ajax call to a .php file.
I'm experiencing inconsistent behavior with the result of the call...
roughly, 50% goes to success and the other 50% goes to failure.
I've logged every single line in my php script, and it always reaches the end and return a beautiful and valid Json.

Despite the fact it echos the json, when it fails - I can't see the response in Firebug, so I don't really know where in the way it failed..

Does anyone have any idea on how to solve it ? Is it a glitch in the web server maybe ?
I'm in a crisis here... :((

Thanks a lot,

guys2008
20 Nov 2010, 7:56 AM
Hello everyone,
Just to let you know that I solved the issue described in this thread...
The problem was that the default timeout set in an Ajax call is 30000ms. My calls to the server sometimes ended in less than 30s and sometimes didn't. When I changed the timeout property in the Ajax object from 30000 to 60000, everything suddenly worked smooth.

Cheers everyone !!