Closed stephenyeargin closed 11 months ago
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.
Adding this.grafana_api_key
as the third argument on L110 will likely resolve it.
We might need to add a unit test so it won't get lost again.
We might need to add a unit test so it won't get lost again.
Added via 5742eaf3de3fba8fdedb1872cbd035052d86cbe3
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 https://github.com/stephenyeargin/hubot-grafana/issues/105#issuecomment-1719319806