android-simpl3r icon indicating copy to clipboard operation
android-simpl3r copied to clipboard

MalformedXML error

Open jaydeepw opened this issue 10 years ago • 6 comments

When I try to upload a file using simpl3r, I get this exception. I tried a quick google search to fix, but didnt work.

05-25 21:12:31.940: W/System.err(21275): Status Code: 400, AWS Service: Amazon S3, AWS Request ID: 25950685FA4A7BA0, AWS Error Code: MalformedXML, AWS Error Message: The XML you provided was not well-formed or did not validate against our published schema, S3 Extended Request ID: lFNEIr7bNf2wmQvoG1wztfVqTCHgRTfsXL8GQAXLWwEs7ZqMdaLdRwcXVfmz7iPm 05-25 21:12:31.940: W/System.err(21275): at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(Unknown Source) 05-25 21:12:31.940: W/System.err(21275): at com.amazonaws.http.AmazonHttpClient.executeHelper(Unknown Source) 05-25 21:12:31.940: W/System.err(21275): at com.amazonaws.http.AmazonHttpClient.execute(Unknown Source) 05-25 21:12:31.940: W/System.err(21275): at com.amazonaws.services.s3.AmazonS3Client.invoke(Unknown Source) 05-25 21:12:31.940: W/System.err(21275): at com.amazonaws.services.s3.AmazonS3Client.completeMultipartUpload(Unknown Source) 05-25 21:12:31.940: W/System.err(21275): at com.readystatesoftware.simpl3r.Uploader.start(Uploader.java:180) 05-25 21:12:31.940: W/System.err(21275): at com.readystatesoftware.simpl3r.example.UploadService.onHandleIntent(UploadService.java:105) 05-25 21:12:31.940: W/System.err(21275): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) 05-25 21:12:31.940: W/System.err(21275): at android.os.Handler.dispatchMessage(Handler.java:102) 05-25 21:12:31.940: W/System.err(21275): at android.os.Looper.loop(Looper.java:136) 05-25 21:12:31.940: W/System.err(21275): at android.os.HandlerThread.run(HandlerThread.java:61)

jaydeepw avatar May 25 '14 15:05 jaydeepw

Hey, did you ever find a fix for this error? I'm getting the same thing.

hboregio avatar Sep 05 '14 18:09 hboregio

Nop. Unfortunaltely I did not.

jaydeepw avatar Sep 06 '14 06:09 jaydeepw

Hey jaydeepw, I actually got it working by using the example code located in the examples folder. I think what was missing from the code was the fact that you have to md5 the filePath before using it as the s3ObjectKey.

hboregio avatar Sep 06 '14 11:09 hboregio

Alright. Thanks for posting it here. I will try it soon. In the meanwhile, if you can, please update the doc appropriately.

jaydeepw avatar Sep 07 '14 03:09 jaydeepw

hi i am getting the same issue , can you you explain a bit more how to solve this error Status Code: 400, AWS Service: Amazon S3, AWS Request ID: 8E3BB31B5AF13F0D, AWS Error Code: MalformedXML, AWS Error Message:

achinverma avatar Mar 07 '15 06:03 achinverma

I am using md5 to hash the filepath to use as the key. Still it shows the same issue. Any ideas ?

bpr10 avatar Mar 19 '15 07:03 bpr10