Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11290] Kitchen sink->Platform->XHR Error callback showing 'unable to resolve host' instead of URL

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-10-16T17:16:36.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2012 Sprint 21 API, 2012 Sprint 21
ComponentsAndroid
Labelsapi, qe-and100112, regression
ReporterShyam Bhadauria
AssigneeIngo Muschenetz
Created2012-10-06T13:19:08.000+0000
Updated2013-11-07T18:33:45.000+0000

Description

This is a regression. It works fine in 2.1.3. Screenshots are attached for sdks 2.1.3 and 3.0.0. In 3.0.0, it do not displays the url 'http://www.fre100.com' but displays the error 'Unable to resolve host "www.fre100.com": No address associated with hostname'. Log attached of the same. Steps to reproduce: 1. Launch refactored Kitchen Sink (Kevin Winnerey/Developer relations version) > Platform > XHR > Error callback Actual result: 1. Gets: UTF-8 GET www.fre100.com Expected result: 1. Should get: UTF-8 GET Unable to resolve host "www.fre100.com": No address associated with hostname

Attachments

FileDateSize
XHR Error Callback 3.0.0..rtf2012-10-06T13:19:08.000+00002153
XHR Error callback SDK 2.1.3.png2012-10-06T13:19:08.000+000017491
XHR Error Callback sdk 3.0.0.png2012-10-06T13:19:08.000+000015220

Comments

  1. Ping Wang 2012-10-10

    Cannot reproduce using HTC Sensation 4G (2.3.4) and Galaxy Tab (3.1). The error messages on one single device are consistent with 2.1.3.GA and 3_0_X branch. Tested on HTC Sensation 4G (2.3.4). It shows:
       UTF-8 GET 
       www.fre100.com
       
    on both 2.1.3.GA and 3_0_X branch. Tested on Galaxy Tab (3.1). It shows:
       UTF-8 GET 
       Unable to resolve host "www.fre100.com": No address associated with hostname
       
    on both 2.1.3.GA and 3_0_X branch. Different error messages are shown on different devices is because different error messages are set on different Android versions. It's a change in native Android. Not a Titanium bug. Can you clarify whether the different error messages are generated from the same device by using different SDK versions?
  2. Dhirendra Jha 2013-04-11

    Verified With - SDK - 3.1.0.v20130409124549 Appcelerator Studio - 3.1.0.201304091724 OS - Montain Lion (v10.8.2) Device - Android 4.1, 2.2 Getting same error message on device using different SDK versions. Hence closing this issue.

JSON Source