-
Notifications
You must be signed in to change notification settings - Fork 87
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
Return a more helpful error message when an invalid API key is used #312
Comments
Hey @alejandrojnm Do you think issue is still a valid one? |
Hi thanks for asking, I'm not sure we can ask to @uzaxirr about this |
Sure thing! |
hey @dipu989 the API will return the below response
Please let me know your approach and raise a PR |
@uzaxirr How about error like - I am not sure if WrongAPIKeyError will be a valid error type in the code base but probably we can add this type of Error in the enum? What do you think?
|
@dipu989 please raise a PR |
When an invalid API key is used, users see this error message:
The error message does not mention the API key, and a reference to 'the internal database' is not helpful. A better message would be something like
API key is invalid. See https://www.civo.com/api#authentication
The text was updated successfully, but these errors were encountered: