Screenshot not working showing "Not Found Unexpected error"

Hi,

We are using previously grafana 6.2.2 verision, so that setup we didn’t see any issues while capturing dashboard screenshot(with statics) using selenium and chromedriver. After that, we have upgraded to grafana 6.7.1 version and showing the screenshot is “Not Found Unexpected error”.

Note: I have tried on geckodriver(mozilla) that also reporting same issue. With those drivers(selenium and chromedriver) i can able to capture other dashboards which means other application like apache. So figured out issue with grafana.

Could please suggest what could be wrong from my end.

Please find the reference.

Thanks,
Vasanth

Hi,

Did you check this post :

Hope it helps.

Good Luck

Hi,
I tried the above way but it did not help either.

Also I observed that grafana.log does not not print uname even if I pass it fro annotation api.
Example:
Command:
$ curl -X POST -H “Authorization: Bearer apikey” ip:port/grafana/api/annotations -k -d ‘{“dashboardId”:48,“panelId”:1,“time”:1615656223,“isRegion”:false,“tags”:[“test”],“text”:“test”,“timeEnd”:0}’
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 152 100 45 100 107 31 74 0:00:01 0:00:01 --:–:-- 105{“message”:“Access denied to this dashboard”}

Grafana.log
t=2021-03-13T23:00:35+0530 lvl=info msg=“Request Completed” logger=context userId=0 orgId=1 uname= method=POST path=/api/annotations status=403 remote_addr= time_ms=3 size=45 referer=

Same happens even if I pass below:
$ curl -X POST admin:@ip:port/grafana/api/annotations -k -d ‘{“dashboardId”:48,“panelId”:1,“time”:1615656223,“isRegion”:false,“tags”:[“test”],“text”:“test”,“timeEnd”:0}’
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 152 100 45 100 107 37 90 0:00:01 0:00:01 --:–:-- 127{“message”:“Access denied to this dashboard”}

t=2021-03-13T23:01:49+0530 lvl=info msg=“Request Completed” logger=context userId=0 orgId=1 uname= method=POST path=/api/annotations status=403 remote_addr= time_ms=0 size=45 referer=

or
curl -X POST --user “admin:” https://ip:port/grafana/api/annotations -k -d ‘{“dashboardId”:48,“panelId”:1,“time”:1615656223,“isRegion”:false,“tags”:[“test”],“text”:“test”,“timeEnd”:0}’