Titanium JIRA Archive
Appcelerator Community (AC)

[AC-796] HTTPClient ondatastream returns negative progress values

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2014-07-17T06:45:57.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid
ReporterReuben Turk
AssigneeShuo Liang
Created2014-07-16T01:56:41.000+0000
Updated2016-03-08T07:37:04.000+0000

Description

On android when using Titanium.Network.HTTPClient to GET json data and other files from a website, the ondatastream callback sometimes returns values less than zero. When I get multiple data streams for the one request they get progressively lower values. For example, these are the progress values from a single GET request for some json:
[DEBUG] : -4096 
[DEBUG] : -7734 
[DEBUG] : -11830 
[DEBUG] : -15926 
[DEBUG] : -20022 
[DEBUG] : -22070 
[DEBUG] : -23478 
[DEBUG] : -27574 
[DEBUG] : -31670 
[DEBUG] : -34950

Comments

  1. Reuben Turk 2014-07-16

    Possibly related: TIMOB-14613
  2. Shuo Liang 2014-07-17

  3. Reuben Turk 2014-07-18

    It doesn't matter to me whether these are duplicate or not but they seem like different issues as the different platforms consistently give different errors: iOS gives values above 1 and android gives values below 0. Although they affect the same thing the symptoms are quite different.

JSON Source