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

Improve error messages when S3 returns a 403 error during an ls operation #1276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qris
Copy link

@qris qris commented Sep 10, 2022

Include the bucket name and URI in the logged error message (via the exception object).

Before:

ERROR: S3 error: 403 (Forbidden)

After:

ERROR: S3 error: 403 (Forbidden): {'bucket': 'iPhoto....net', 'uri': '/.../Masters/2016/10/15/20161015-142339/IMG_3290.MOV'}

…ration

Include the bucket name and URI in the logged error message (via the exception object).
@fviard
Copy link
Contributor

fviard commented Oct 4, 2022

Have you an example of command and debug output ("-d") that will generate a case like that?
Normally, you should already have access to the info through the existing exc.resource, no? Except if aws does not return it, but, then it maybe means that the object in itself is not what is causing the issue.

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

Successfully merging this pull request may close these issues.

None yet

2 participants