-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
S3 error matchers don't match anything #207
Comments
Just got hit by this when trying to check if a key (Object) exists in an S3 bucket.
You'll have to import The
In my case, I'm making a |
Given that there's a workaround, I'm punting this until after 2.0. |
About five months ago, a botocore update added HTTP status codes to the S3 service definition: I advanced the
Note that it correctly returns a However, we cannot advance I'm going to tag this |
Actually, I can also get a Here is what S3 is sending these days (from the trace-level log):
So I guess this has become fine at some point? |
Rather unfortunate. It seems the S3 service definition has completely nonsensical metadata for the errors.
For example attempting to catch
_NoSuchBucket
will never succeed given the following S3 response:And the current definition for
_NoSuchBucket
:Given there is no other obvious metadata available, other than to match known error codes such as
"Not Found"
above, I'm still pondering how best to fix this.The text was updated successfully, but these errors were encountered: