-
Notifications
You must be signed in to change notification settings - Fork 584
Misleading error message with unauthorized credentials #5209
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
Comments
@ducminh-phan this is expected behavior because of what happens after step 1.
The error actually originates directly from the response returned by AWS:
If you run Thus in step 2, what If you can run step 1 again and provide the output here you should see an error related to setting the Alias. |
@ravindk89 Sorry 😢 I should have made it clearer. The credentials used in |
Uh oh!
There was an error while loading. Please reload this page.
Expected behavior
Clear error message with unauthorized credentials
Actual behavior
Ambiguous error message when unauthorized credentials are provided:
mc: <ERROR> Unable to prepare URL for copying. Unable to guess the type of copy operation.
Compared to
awscli
's message:fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden
Steps to reproduce the behavior
Set an alias with valid credentials, but restricted to a bucket, say
bucket_a
Copy a file from a second bucket, on which the credentials have no permissions
mc cp test_s3/bucket_b/file.zip .
Debug output:
mc --version
The text was updated successfully, but these errors were encountered: