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.
Will be checking if this https://github.com/appcelerator/titanium_mobile/pull/8003 could be the cause.
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.
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.
Verified the fix. No
411
error is seen anymore withti.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