Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23852] Android: http status code 411 error when building a default app with ti.cloud module

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-09-01T10:42:44.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.0.0
ComponentsAndroid
Labelsqe-6.0.0
ReporterLokesh Choudhary
AssigneeAshraf Abu
Created2016-08-31T22:25:48.000+0000
Updated2016-09-01T20:38:38.000+0000

Description

Steps to reproduce:

1. Create a default alloy/classic app with SDK mentioned in environment. 2. Build for android device/emulator.

Actual Results:

1. The app builds fine but we get HTTP Status Code 411 error as below:
[ERROR] :  TiHTTPClient: (TiHttpClient-1) [337,337] HTTP Error (java.io.IOException): 411 : Length Required
[ERROR] :  TiHTTPClient: java.io.IOException: 411 : Length Required
[ERROR] :  TiHTTPClient: 	at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1217)
[ERROR] :  TiHTTPClient: 	at java.lang.Thread.run(Thread.java:818)
[ERROR] :  D/com.google.android.apps.docs.quickoffice.X(28099): Loading recent documents list
[ERROR] :  D/com.google.android.apps.docs.quickoffice.X(28099): Checking validity of 1 items
[INFO] :   ACS Login Results for environment development:
[INFO] :   [object Object]

Expected Results:

1. We should not get any HTTP Status Code 411 error.

Comments

  1. Ashraf Abu 2016-09-01

    Will be checking if this https://github.com/appcelerator/titanium_mobile/pull/8003 could be the cause.
  2. Ashraf Abu 2016-09-01

    6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8301 Master PR: https://github.com/appcelerator/titanium_mobile/pull/8302 It is https://github.com/appcelerator/titanium_mobile/pull/8003 that is causing the issue.
  3. Hans Knöchel 2016-09-01

    PR's merged. -[~msamah] Is 5.5.0 also affected by the other ticket? If so, we need a 5_5_X backport as well, thanks!- 5.5.0 is not affected.
  4. Lokesh Choudhary 2016-09-01

    Verified the fix. No 411 error is seen anymore with ti.cloud. Closing. Environment: Appc Studio : 4.8.0.201608221113 Ti SDK : 6.0.0.v20160901034311, 6.1.0.v20160901034335 Ti CLI : 5.0.9 Alloy : 1.9.1 MAC El Capitan : 10.11.6 Appc NPM : 4.2.7 Appc CLI : 6.0.0-31 Node: 4.4.4 Nexus 6 - Android 6.0.1

JSON Source