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

Object create and create_streamed always return an Error::Other on a non–200 response #102

Open
db48x opened this issue Mar 18, 2022 · 2 comments

Comments

@db48x
Copy link

db48x commented Mar 18, 2022

The documentation implies that errors from Google become an Error::Google, but https://docs.rs/cloud-storage/latest/src/cloud_storage/client/object.rs.html#126 always creates an Error::Other.

Other("{\n  \"error\": {\n    \"code\": 403,\n    \"message\": \"[email protected] does not have storage.objects.delete access to the Google Cloud Storage object.\",\n    \"errors\": [\n      {\n        \"message\": \"[email protected] does not have storage.objects.delete access to the Google Cloud Storage object.\",\n        \"domain\": \"global\",\n        \"reason\": \"forbidden\"\n      }\n    ]\n  }\n}\n")
@t4t5u0
Copy link

t4t5u0 commented Jul 13, 2022

@db48x
Probably, this is not library error.
You can try to grant permission to browse bucket for service account.

@db48x
Copy link
Author

db48x commented Jul 15, 2022

Sure, the error went away once I fixed the permissions, but that’s not what I am reporting. I am reporting that the type of the error appears to be wrong.

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

No branches or pull requests

2 participants