-
Notifications
You must be signed in to change notification settings - Fork 46
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
Download method needs API key in header #168
Comments
That appears to be the case. @KeesCBakker did some much-needed refactoring recently and it may not be passing the API key down where it needs to. hubot-grafana/src/grafana-client.js Lines 103 to 120 in 916417f
Adding |
We might need to add a unit test so it won't get lost again. |
Added via 5742eaf |
From original reported issue:
I am getting these snippets even though grafana is able to render the dashboards. I only get the error when using hubot-grafana
Any ideas how I could debug this?
Everything seems to be ok, I get the correct URL and statusText from Grafana is OK but it returns an HTML instead of the PNG
I tried the same request with CURL and it worked fine
I think I found the problem.
The API key is not being passed to grafana in the header
After adding the key there it worked, however by default it is not passed. Is this a bug on your end?
Originally posted by @gkaskonas in #105 (comment)
The text was updated successfully, but these errors were encountered: