Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2594] Android: HTTPClient XHR throws Uncaught ReferenceError: parseHost is not defined

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-07-26T23:13:06.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterKetan Majmudar
AssigneeMauro Parra-Miranda
Created2013-07-09T13:46:34.000+0000
Updated2016-03-08T07:41:40.000+0000

Description

I am getting this cryptic error, somewhere in use of the HTTPClient. It only shows on Android, but I can't debug it. Can anyone shed any light on this error, as the network call actually works.
E/TiExceptionHandler(20724): (main) [55786,86040] ----- Titanium Javascript Runtime Error -----
E/TiExceptionHandler(20724): (main) [0,86040] - In ti:/url.js:85,11
E/TiExceptionHandler(20724): (main) [0,86040] - Message: Uncaught ReferenceError: parseHost is not defined
E/TiExceptionHandler(20724): (main) [0,86040] - Source: 		var p = parseHost(out.host);

Comments

  1. Daniel Sefton 2013-07-12

    Please can you provide a simple reproducible test case that we can drop into an app.js and run? Thanks!
  2. Ketan Majmudar 2013-07-27

    Part of my job was to refactor the apps codebase into Alloy - at some point between posting this and waiting for some time to produce a test case /app - the error is no longer firing. I will see if I can find out when this occurred. Thanks, Ket
  3. Armindo Da Silva 2013-07-30

    I have the same problem also on Android. and finally found the problem, I have added my "own" url property to the window. hope this help.

JSON Source