Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25338] Android: 404 causes Ti.Network.createHTTPClient not to return

GitHub Issuen/a
TypeBug
PriorityCritical
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.2.2
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterBen Bahrenburg
AssigneeUnknown
Created2017-09-24T19:31:32.000+0000
Updated2018-02-28T19:55:16.000+0000

Description

Hello, In the latest release Ti SDK 6.2.2 and in the Nightly build 6.3.x branch the Ti.Network.createHTTPClient encounters a proxy error when a web server returns a 404. This is happening at the Java Proxy layer and is not throws up to JS in either a try catch on the statement or to the Ti.Network.createHTTPClient error handler. Below is the trace output that is written to the AppC Studio console: [ERROR] : TiHTTPClient: (TiHttpClient-4) [36283,36283] HTTP Error (java.io.IOException): 404 : Not Found [ERROR] : TiHTTPClient: java.io.IOException: 404 : Not Found [ERROR] : TiHTTPClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1283) [ERROR] : TiHTTPClient: at java.lang.Thread.run(Thread.java:761) [WARN] : TiBlob: (KrollRuntimeThread) [29,36312] getNativePath not supported for non-file blob types. [WARN] : TiBlob: (KrollRuntimeThread) [0,36312] getFile not supported for non-file blob types. [ERROR] : ProxyFactory: Exception thrown while creating V8 proxy.

Comments

  1. Hans Knöchel 2017-09-25

    Hey Ben, only in 6.2.2 and 6.3.0? I am wondering because nothing changed in 6.2.2 that would make it work in 6.2.1 but not in 6.2.2.
  2. Gary Mathews 2017-09-27

    Could you provide a test case that reproduces this issue? My test case does not crash.

JSON Source