aws-s3-multipart-upload icon indicating copy to clipboard operation
aws-s3-multipart-upload copied to clipboard

Error: BatchedUploadIncomplete: some objects have failed to upload

Open thelebdev opened this issue 4 years ago • 2 comments

I'm trying to upload the content of a whole directory. The content of the directory is never static, sometimes I have 20 files, some other time I've got 25 files, etc.

The code is always failing at the last file with the following stack trace:

Error: BatchedUploadIncomplete: some objects have failed to upload.
caused by: failed to perform batch operation on "path/to/file/file" to "bucket-name":
MultipartUpload: upload multipart failed
	upload id: random_file_id
caused by: BodyHashError: failed to compute body hashes
caused by: read path/to/directory/of/files: is a directory

any idea what might be going on?

Note: It is always failing on the last file

thelebdev avatar Aug 23 '19 09:08 thelebdev

@thelebdev Can you check if that file exists and has read permission for the user running this?

Share a code snippet so I can see it in depth.

apoorvam avatar Aug 23 '19 13:08 apoorvam

I'll take a look at that thoroughly, it's not breaking my code for now but will keep the issue open for better enhancement of the code.

thelebdev avatar Sep 09 '19 08:09 thelebdev