You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
Note that the request URL path is api/annotation, despite that the Grafana API docs specify it as api/annotations, and that the response body is HTML rather than JSON:
$ GF_LOG=1 go run main.go
2020/07/19 09:48:12 request (GET) to http://admin:admin@localhost:3000/api/annotation with no body data
2020/07/19 09:48:13 response status 200 with body <!DOCTYPE html><html lang="en">
...
panic: invalid character '<' looking for beginning of value
Expected behavior
The Annotations method should perform a GET api/annotations request and return the annotations.
The text was updated successfully, but these errors were encountered:
mdb
added a commit
to mdb/go-grafana-api
that referenced
this issue
Jul 19, 2020
This seeks to address issue nytm#58.
It also illustrates the problem outlined in issue nytm#56, as
`TestAnnotationsIntegration` will fail until PR nytm#57 is merged.
This seeks to address issue nytm#58.
It also illustrates the problem outlined in issue nytm#56, as
`TestAnnotationsIntegration` will fail until PR nytm#57 is merged.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Currently, the
Annotations
method performs aGET api/annotation
request, though it should perform aGET api/annotations
request.To reproduce
Steps to reproduce the behavior:
Run a local Grafana:
docker run -p 127.0.0.1:3000:3000 "grafana/grafana:$(GRAFANA_VERSION)"
Create a basic go package to perform an
Annotations
request:Run the code with
GF_LOG=1
:GF_LOG=1 go run ~/Desktop/main.go
Note that the request URL path is
api/annotation
, despite that the Grafana API docs specify it asapi/annotations
, and that the response body is HTML rather than JSON:Expected behavior
The
Annotations
method should perform aGET api/annotations
request and return the annotations.The text was updated successfully, but these errors were encountered: