My Android App post HTTP requests to PHPs on Godaddy servers on shared economy hosting on Linux. The requests look like http://example.com/abc.php?user=abc@xyz.com
Until last night everything worked perfect for 2 months for 560 users using the App concurrently. From around 10.30pm last night we started getting Force Close in the App.
I started debugging it and found that the http posts to Godaddy servers return a response “Your Request has timed out” intermittently and that is why the App Force closes since the App expects the JSON response.
I called tech support at Godaddy and they told me that everything looks fine with the database and the servers on which we are hosted.
I am so lost and don’t know how I can fix this time out issue. Any help or clue as to why this would happen all of a sudden is much appreciated.
NOTE: I wanted to add that absolutely nothing has changed in the Android App and PHPs in the version that we went live with in the last month.
Thanks.
This was a problem with Godaddy Servers and I worked around it with a fix in Android itself so that the response is first checked if it is 200 OK. If it is, go forward with further processing otherwise display dialog etc… depending on what the needs are. Atleast no force close in App around bad HTTP response from server.