Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: BatchedUploadIncomplete: some objects have failed to upload #2

Open
thelebdev opened this issue Aug 23, 2019 · 2 comments
Open

Comments

@thelebdev
Copy link

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

@apoorvam
Copy link
Owner

@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.

@thelebdev
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants