Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13920] MobileWeb: HTTPClient: status is always 0

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T22:21:12.000+0000
Affected Version/sRelease 3.1.0, Release 3.2.0
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterYaroslav Pidstryhach
AssigneeChris Barber
Created2013-05-09T12:02:22.000+0000
Updated2018-04-04T23:20:26.000+0000

Description

*Reproduction steps:* - create an HTTPClient, send a request - see text in alerts or - run attached project *Expected behavior:* alerts should open one by one with follow text: onreadystatechange status: 401 onreadystatechange status: 401 onreadystatechange status: 401 onerror status: 401 *Actual behavior:* alerts open one by one with onreadystatechange status: 0 onreadystatechange status: 0 onreadystatechange status: 0 onerror status: 0 Same behavior when actual status is 200. *Tested on:* Chrome 18.0.1025469 (Android 4.0.3) WebKit/534.30 (Android 4.0.3) WebKit/r123997 (Tizen 2.0) Code Example:
var url = 'http://tools.dynamicdrive.com/password/example/';
var request = Titanium.Network.createHTTPClient();
request.open('GET',url);
       
request.send();
   
request.onreadystatechange = function(){
    alert('onreadystatechange status: ' + this.status);
}
   
request.onerror = function() {
    alert('onerror status: ' + this.status);
}

Comments

  1. Daniel Sefton 2013-05-20

    Tested and confirmed with 3.1 GA and 3.2 CI on Android 2.3.6 Web browser and Firefox.
  2. Lee Morris 2017-06-26

    Resolving as "Won't Fix" as MobileWeb has been deprecated.
  3. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source