render api returning png when asked for json

Asked by Lonnen

I am trying to get JSON data out from my graphite install. When I access `http://legitimatewebsite.biz/render/?target=stats_counts.some.metric&format=json` a png is returned. If I instead access ``http://legitimatewebsite.biz/render/?target=stats_counts.some.metric&format=csv` the expected csv is returned, so I'm confident in the query format. Other graphs are rendered as expected, and I don't see any errors in the logs.

I'm running graphite 0.9.8 on python 2.6 and RHEL. I've looked in the docs for historic versions of the render api, but the oldest documentation on read the docs is 0.9.x and it lists json as a valid format.

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Leinartas
Solved:
Last query:
Last reply:
Revision history for this message
Best Michael Leinartas (mleinartas) said :
#1

json output wasn't added until 0.9.9 so I'm afraid you'll need to upgrade to a more recent version before you can use the json output.

Revision history for this message
Lonnen (chris-lonnen) said :
#2

Thanks Michael Leinartas, that solved my question.