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

https://app.datadoghq.com/api/v1/validate endpoint returns HTML for non-valid api keys #286

Closed
tonglil opened this issue Nov 14, 2019 · 2 comments

Comments

@tonglil
Copy link
Contributor

tonglil commented Nov 14, 2019

$ curl -L -X GET -H 'Content-Type: application/json' -H "DD-API-KEY: invalid" "https://app.datadoghq.com/api/v1/validate"
<html><body><h1>403 Forbidden</h1>
Request forbidden by administrative rules.
</body></html>

This breaks the library by returning a parsing error invalid character '<' looking for beginning of value instead of false for https://godoc.org/gopkg.in/zorkian/go-datadog-api.v2#Client.Validate.

@bkabrda
Copy link
Collaborator

bkabrda commented Nov 15, 2019

Hey, I think we fixed this in #282 and released that fix in version 2.25.0 - could you give that version a go?

@bkabrda
Copy link
Collaborator

bkabrda commented Feb 3, 2020

Closing as per the above comment. Feel free to reopen if you're still experiencing issues.

@bkabrda bkabrda closed this as completed Feb 3, 2020
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