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

remote: Show more possible reasons for S3 access error #341

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Dec 27, 2023

Description of proposed changes

Previously, other reasons detailed in the changes would show an error message saying "no bucket exists" even if it does exist.

Update the error text to describe more possible reasons based on docs for S3.Client.head_bucket.¹ and local testing. This list might not be exhaustive, but I can't come up with any other scenarios.

¹ https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/head_bucket.html

Related issue(s)

Checklist

  • Checks pass

Previously, other reasons detailed in the changes would show an error
message saying "no bucket exists" even if it does exist.

Update the error text to describe more possible reasons based on docs
for S3.Client.head_bucket.¹ and local testing. This list might not be
exhaustive, but I can't come up with any other scenarios.

¹ <https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/head_bucket.html>
@victorlin victorlin requested a review from a team December 27, 2023 23:31
@victorlin victorlin self-assigned this Dec 27, 2023
Copy link
Contributor

@joverlee521 joverlee521 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Too bad the ClientError does return the different error codes.

@jameshadfield
Copy link
Member

This PR will close #56

@victorlin victorlin merged commit c31c75d into master Jan 8, 2024
36 checks passed
@victorlin victorlin deleted the victorlin/s3-error-handling branch January 8, 2024 19:23
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

Successfully merging this pull request may close these issues.

[deploy] Hint that a bucket may not be found because of missing/wrong credentials
3 participants