GoogleCloudPlatform / GoogleCloudPlatform/gsutil
improve AccountProblem error message
- Dominant language
- Python
- Stars
- 918
- Forks
- 335
- PR merge metrics
- No merged PRs in 30d
Description
gsutil's exception handler for 403 errors could be improved, per this suggestion from one of our users (sanitized to remove identifying information):
---
Hello,
I have an project with billing enabled.
However, I get AccountProblem error when I try to create a bucket:
The command:
$ gsutil mb -p my-project gs://my-bucket
Creating gs://my-bucket/...
Your request resulted in an AccountProblem (403) error. Usually this happens
if you attempt to create a bucket or upload an object without having first
enabled billing for the project you are using. To remedy this problem, please do
the following:
...
...
I enabled the "Google Cloud Storage" setting in https://cloud.google.com/console#/project/apps~my-projectt/apiui/api
and it worked.
It would be nice if the error message, already being a troubleshooting text, could point the user towards that possibility (if it's not possible to actually check whether the API is enabled and that is the actual cause of the error)
Contributor guide
Assessment
This issue has not been assessed yet.