render api returning png when asked for json

Asked by Lonnen on 2012-07-27

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:
2012-07-30
Last query:
2012-07-30
Last reply:
2012-07-29
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.

Lonnen (chris-lonnen) said : #2

Thanks Michael Leinartas, that solved my question.