The connection To The Server Was Unsuccessful - Android 2.2, jquerymobile, 0.9.5.1

1,540 views
Skip to first unread message

jrw

unread,
Jun 2, 2011, 5:02:26 PM6/2/11
to phonegap
Hi,

I keep getting this error message and I don't know how to resolve it.

"The connection To The Server Was Unsuccessful"

It comes up as soon as I try to load my program. I'm connected to the
internet (I can load webpages on the emulator through the browser).
If I change my index.html page so that it is just a simple html
containing some text and no references, everything loads fine.
However, when I use my actual web program, I get that error.

I number of other people have had this error as well but as far as I
can tell, it was not resolved for any of them. Any ideas at least of
what the general causes of the error are?

http://groups.google.com/group/phonegap/browse_thread/thread/43bbb0e808b580a3/6d4271589ce89c3b?lnk=gst&q=The+connection+to+the+server+was+unsuccessful#6d4271589ce89c3b

http://groups.google.com/group/phonegap/browse_thread/thread/8bd92eab8341a3f6/60f5c380cde45261?lnk=gst&q=The+connection+to+the+server+was+unsuccessful#60f5c380cde45261

http://groups.google.com/group/phonegap/browse_thread/thread/8a3c08b4b6b9c066/7967a9f6b673454c?lnk=gst&q=The+connection+to+the+server+was+unsuccessful#7967a9f6b673454c

http://groups.google.com/group/phonegap/browse_thread/thread/3336e5dfbb98120e/571aa73d49446092?lnk=gst&q=The+connection+to+the+server+was+unsuccessful#571aa73d49446092

snellius

unread,
Jun 9, 2011, 10:40:17 AM6/9/11
to phon...@googlegroups.com
I also had this problem in connection with Sencha Touch. After a while, I found out about the "UNCOMPRESS_DATA_MAX" on Android <= 2.2. Turns out, the "sencha-touch-debug-w-comments.js" is about 1.5MB.
So check if you have some script file with size > 1MB.
If no: I can't help you ;)

Plz let me know if this hint helped you.

xmetal

unread,
Jun 9, 2011, 11:06:08 AM6/9/11
to phonegap
I ran into this yesterday while transitioning a successfully running
iOS app over to Android. After some troubleshooting it seemed that the
problem in my case was that I am loading a very large JSON file to
populate a long list of data, and that seemed to be timing out. After
some googling I increased the url timeout within my primary App.java
file and that seemed to eliminate my problem.

Added this property: super.setIntegerProperty("loadUrlTimeoutValue",
60000);
Reply all
Reply to author
Forward
0 new messages