-
Notifications
You must be signed in to change notification settings - Fork 268
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
KeyError: 'ETag' #477
Comments
I think this is the actual issue. @machielg can you share the |
@machielg Are you using aws s3 or some s3-compatible storage (e.g. minio)? |
I'm using moto, this occurs in a unit test. |
|
I'm getting the same error if I try it in a python shell s3.copy("s3://sagemaker-eu-west-1-123456789/cvc/cvc-mail/email/", "/tmp/foobar", recursive=True) |
It does seem reasonable not to depend on the existence of ETag, if some implementations do not have it. From the description, I couldn't tell if the problem was with attempting to copy a folder (which is not an S3 thing) or one of the constituent files. |
Makes sense, will switch that part with a reasonable version. |
I can't copy a file or a folder. I always get this ETag error. |
I've encountered a similar issue due to an object in s3 not returning an ETag when I try to open a parquet file using Pandas in Databricks. The stack trace ultimately points here. Here's the full stack trace:
I'm not sure why the object in question returns no ETag. Any info or suggested workarounds here would be appreciated! |
The line should probably be skipped if the ETag is missing or empty. Contribution welcome :) |
Fix #477 -- Don't set IfMatch if ETag is missing
What happened:
I get a KeyError when trying to copy files from bucket to local:
What you expected to happen:
files get copied
Minimal Complete Verifiable Example:
Anything else we need to know?:
in the _info() function, when the ls was cached, the response never includes the 'Etag' key, so I think it's a bug to rely on it always being there.
Environment:
The text was updated successfully, but these errors were encountered: