[TIMOB-8900] Android: HTTP request causes intermittent "Connection reset by peer" error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2012-07-30T10:16:46.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | n/a |
Components | Android |
Labels | api |
Reporter | Eric Cheng |
Assignee | Hieu Pham |
Created | 2012-04-26T16:23:16.000+0000 |
Updated | 2017-03-23T21:44:27.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
Connection_error.jpeg | 2012-04-26T17:03:08.000+0000 | 196114 |
updating image.
The description of the problem is accurate. I spoke with the customer today on this issue and there is not really a single series of steps that makes this happen. It can be at any time during server communications. The server is not logging any network connection issues so there is nothing useful from the server side. The app's http connection just seems to get dropped.
The code link gave me a 404 error. Please update the link.
This issue still needs to be looked at. The platform still throws Connection Reset By Peer errors that need to be fixed. Please let me know which link doesn't work. I have tested all links and I don't get any 404 errors.
The link is now working, but the app is not working with 2.1.0. Some of the modules are missing and tiApp.xml is out of date. Please update the app and/or provide a code sample. The code sample provided isn't working. This issue will be put on hold until then.
Dev can't take action till we get working sample code, please provide.
We are still waiting on a fix here for this. We had put a work around in place, where we just queue the call when this occurs and we keep retrying until it finally works. The problem is now more severe on 4G vs Wifi and the work around is not sufficient. We need this to be resolved so that the connection stops getting dropped by Titanium.
All modules required to make the app that is linked to this JIRA ticket work on zipped up and in the module-zips folder in the repo
I encounter this problem too. I have a javascript "class" that acts as a model. One of its methods is there to fetch data from the server, in the data there are images url that might trigger other http request when assigned to an imageview. Sorry I can't say more without providing the whole app. Any clue? was this resolved actually? This is the code, pretty common I suppose: myClass.prototype.loadData = function(ressourceId){ var that = this; if (this.id == ressourceId) { //...todo } else { this.resetAndClean() this.id = ressourceId var xhr = Ti.Network.createHTTPClient({ onload: function(e) { var myData = JSON.parse(this.responseText); //do something with the data but removed for nda }, onerror: function(e) { alert(e.error) }, timeout:5000 }); xhr.open("GET", Alloy.globals.Config.apiURL + this.id); xhr.send(); } }
Closing ticket because the information that was requested was never provided.