cloud-storage-rs
cloud-storage-rs copied to clipboard
Object create and create_streamed always return an Error::Other on a non–200 response
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")
@db48x Probably, this is not library error. You can try to grant permission to browse bucket for service account.
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.