View Full Version : how to know why a request fails

26 Jan 2011, 8:19 AM
I have a request that fails. I logged the response status that is -1 :

console.log('server-side failure with status code ' + response.status);

I don't know what this means

Could anyone give me the signification of -1 value

And where can I get the list of possible status values

Thank you in advance for your answers

26 Jan 2011, 8:43 AM
I logged the response.responseText but it gives me the error : "transaction aborted"

How to know exactly why the transaction is aborted

26 Jan 2011, 9:28 AM
That really seems like a server-side issue.


site:sencha.com sencha "transaction aborted"

For example: http://www.sencha.com/forum/archive/index.php/t-21311.html

26 Jan 2011, 10:54 AM
Hi fay and thank you for your answer,
Actually, I checked that the request is aborted before the server has sent its response
The server is still working when I have the "aborted" message
The request abort after 32 seconds
Is there a timeout ?
If it is the case is there a way to bypass the timeout ?

Furthermore the length of the response is 38400 characters sent with "text/html"
Isn't it too long ?

26 Jan 2011, 11:41 AM
I found the solution : effectively, there is a timeout of 30 s by default. I set another timeout