[AC-2594] Android: HTTPClient XHR throws Uncaught ReferenceError: parseHost is not defined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-07-26T23:13:06.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Ketan Majmudar |
Assignee | Mauro Parra-Miranda |
Created | 2013-07-09T13:46:34.000+0000 |
Updated | 2016-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);
Please can you provide a simple reproducible test case that we can drop into an app.js and run? Thanks!
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
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.