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

InfluxDB 2.0: The /api/v2/sources/:id/health returns malformed JSON [area/api] #12547

Closed
bednar opened this issue Mar 12, 2019 · 0 comments · Fixed by #12594
Closed

InfluxDB 2.0: The /api/v2/sources/:id/health returns malformed JSON [area/api] #12547

bednar opened this issue Mar 12, 2019 · 0 comments · Fixed by #12594
Assignees
Labels
Milestone

Comments

@bednar
Copy link
Contributor

bednar commented Mar 12, 2019

When I trying get the health of a source then HTTP response is the malformed JSON:

-> GET 
-> http://127.0.0.1:9999/api/v2/sources/0388807246787000/health

<- 200 
<- OK
<- {
	"name": "sources",
	message: "source is healthy",
	"status": "pass",
	"checks": []
}

The message property doesn't have quotation marks.

The error can be fixed by replacing msg := with:

msg := `{"name":"sources", "message":"source is %shealthy","status":"%s","checks":[]}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants