-
Notifications
You must be signed in to change notification settings - Fork 58
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
Getting 403 after putting in DATADOG_API_KEY #115
Comments
no worries, got it working |
@pjerryhu Can I ask what the issue turned out to be? Is there anything that could or should have been better in the docs or error messages to help you solve it before you wound up posting an issue? |
Hi @Mr0grog , thanks for the message. Yea, it turned out Datadog has App Key and API key as 2 different concepts.. I was just generating an App Key and use it for the API key. |
Good to know. I’ll see if we can clarify this some in the docs or maybe add a suggestion about this in the error message. |
Issue #115 demonstrated how easy it is to get confused about API vs. application keys, so I’ve added some more documentation here about the difference as well as links to the official documentation about it (https://docs.datadoghq.com/account_management/api-app-keys/). I’ve also added a custom `AuthorizationError` class with a more explanatory message (also with links to the docs), so people should see something more helpful in their console or logs, too.
Issue #115 demonstrated how easy it is to get confused about API vs. application keys, so I’ve added some more documentation here about the difference as well as links to the official documentation about it (https://docs.datadoghq.com/account_management/api-app-keys/). I’ve also added a custom `AuthorizationError` class with a more explanatory message (also with links to the docs), so people should see something more helpful in their console or logs, too.
Hey guys, I followed the guide https://www.npmjs.com/package/datadog-metrics
and integrated the lib but still getting 403 after putting in my DATADOG_API_KEY. Do you guys have clues on how to resolve this??
The text was updated successfully, but these errors were encountered: