Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8900] Android: HTTP request causes intermittent "Connection reset by peer" error

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNeeds more info
Resolution Date2012-07-30T10:16:46.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsapi
ReporterEric Cheng
AssigneeHieu Pham
Created2012-04-26T16:23:16.000+0000
Updated2017-03-23T21:44:27.000+0000

Description

Attachments

FileDateSize
Connection_error.jpeg2012-04-26T17:03:08.000+0000196114

Comments

  1. Eric Cheng 2012-04-26

    updating image.
  2. John V Pataki 2012-05-04

    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.
  3. Hieu Pham 2012-05-29

    The code link gave me a 404 error. Please update the link.
  4. Cindy Kao 2012-06-18

    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.
  5. Hieu Pham 2012-06-26

    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.
  6. Thomas Huelbert 2012-07-23

    Dev can't take action till we get working sample code, please provide.
  7. John V Pataki 2012-08-27

    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.
  8. John V Pataki 2012-08-27

    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
  9. Kevin Purnelle 2013-02-21

    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(); } }
  10. Lee Morris 2017-03-23

    Closing ticket because the information that was requested was never provided.

JSON Source