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

GET /telegrafs panics when using org=org_name parameter #16495

Closed
russorat opened this issue Jan 10, 2020 · 0 comments · Fixed by #16527
Closed

GET /telegrafs panics when using org=org_name parameter #16495

russorat opened this issue Jan 10, 2020 · 0 comments · Fixed by #16527

Comments

@russorat
Copy link
Contributor

russorat commented Jan 10, 2020

The following curl command produces the panic:
a panic has occurred: runtime error: invalid memory address or nil pointer dereference
When called on an instance with no telegrafs

curl -X GET \
  'http://localhost:9999/api/v2/telegrafs?org=telegraf' \
  -H 'Accept: */*' \
  -H 'Accept-Encoding: gzip, deflate' \
  -H 'Authorization: Token $INFLUX_TOKEN' \
  -H 'Content-Type: application/json' 

This one returns the correct response (org id instead of name)

curl -X GET \
  'http://localhost:9999/api/v2/telegrafs?org=ORG_ID' \
  -H 'Accept: */*' \
  -H 'Accept-Encoding: gzip, deflate' \
  -H 'Authorization: Token $INFLUX_TOKEN' \
  -H 'Content-Type: application/json' 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant