Skip to content

Provide better error messages for common auth errors #286

Description

@silvolu

@ryanseys suggested to add more sanity checking in #261 (comment), but I'm not sure we can do more than checking that the .json file or the credentials object contains the expected fields. #261 (comment) shows that it doesn't solve the problem of a developer using a non-key value for private_key when passing in a credentials object.
I think we could at least intercept the error and give back a more meaningful explanation, something like "There is something wrong with your key. If you are using a .json file, make sure that on the Google Developer Console you've generated the file for a ClientId of Service Account type....."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🚨This issue needs some love.library: cloud-profilerIssues transferred from another repositorytriage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions