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

Provide better error message if service account does not have the required scopes #6

Closed
vadimberezniker opened this issue Mar 16, 2016 · 1 comment

Comments

@vadimberezniker
Copy link

The current error message is:
POST "https://www.googleapis.com/sql/v1beta4/projects/project/instances/instance/createEphemeral": 403 Forbidden; Body="{\n "error": {\n "errors": [\n {\n "domain": "global",\n "reason": "insufficientPermissions",\n "message": "Insufficient Permission"\n }\n ],\n "code": 403,\n "message": "Insufficient Permission"\n }\n}\n"; read error:

If reason is "insufficientPermissions", we should provide a nice error message about the required scopes.
I don't believe "insufficientPermissions" shows up in any other scenarios other than missing the scopes.

@Carrotman42
Copy link
Contributor

Done in #13

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