Ti-Amazon-S3 icon indicating copy to clipboard operation
Ti-Amazon-S3 copied to clipboard

400 Bad Request

Open puneetimpinge opened this issue 8 years ago • 4 comments

I have tried to upload image to aws s3 server, first time its properly uploaded to s3 but second time I got 400 Bad request error and its not uploaded to s3.

Below are the error messages:

[ERROR] : TiHTTPClient: (TiHttpClient-2) [222,128527] HTTP Error (java.io.IOException): 400 : Bad Request [ERROR] : TiHTTPClient: java.io.IOException: 400 : Bad Request [ERROR] : TiHTTPClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1227) [ERROR] : TiHTTPClient: at java.lang.Thread.run(Thread.java:841)

Please help me to solve the above issue.

I used titanium sdk 5.3.0 Anddroid version 4.4.4

I got above issue for android device only. On iOS its properly works.

puneetimpinge avatar Jun 23 '16 13:06 puneetimpinge

I have same problem. It's not solved yet?

jazzparty avatar Sep 28 '16 09:09 jazzparty

this problem is solved and was solved at the time you asked this question. amazon is very sensitive to time and timezone formatting issues. I might consider doing a tutorial on this module.

Sophrinix avatar Oct 21 '16 23:10 Sophrinix

Here is the solution. You might probably using only one global xhr object

Alloy.Globals.xhr=Titanium.Network.createHTTPClient({async:true});

In Android I figured out that for every WCF/service request you need to initialize a new xhr object and send the request. This will work smoothly.

I'm doing many projects on appcelerator my email is [email protected].

obaidjawad avatar Mar 07 '17 06:03 obaidjawad

[ERROR] : TiHTTPClient: (TiHttpClient-1) [0,228025] HTTP Error (java.io.IOException): 400 : Bad Request [INFO] : 400 [ERROR] : TiHTTPClient: java.io.IOException: 400 : Bad Request [ERROR] : TiHTTPClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1283) [ERROR] : TiHTTPClient: at java.lang.Thread.run(Thread.java:764) [INFO] : Aborting HTTP client

ghost avatar Jan 31 '19 11:01 ghost