aws-s3-multipart-upload
aws-s3-multipart-upload copied to clipboard
Error: BatchedUploadIncomplete: some objects have failed to upload
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 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.
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.