[metrics-bugs] #21036 [Metrics/Onionoo]: Onionoo doesn't return JSON for error responses

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Dec 21 07:12:51 UTC 2016


#21036: Onionoo doesn't return JSON for error responses
-----------------------------+------------------------------
 Reporter:  lukechilds       |          Owner:  metrics-team
     Type:  defect           |         Status:  closed
 Priority:  Low              |      Milestone:
Component:  Metrics/Onionoo  |        Version:
 Severity:  Minor            |     Resolution:  not a bug
 Keywords:                   |  Actual Points:
Parent ID:                   |         Points:
 Reviewer:                   |        Sponsor:
-----------------------------+------------------------------
Changes (by lukechilds):

 * status:  new => closed
 * resolution:   => not a bug


Comment:

 Yeah fair enough, I've just a had a look around and found a few other APIs
 that also return HTML for errors. Just using the response codes seems
 perfectly reasonable.

 I still think JSON errors would be preferable but I suppose this is more
 of a design decision than a bug.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21036#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the metrics-bugs mailing list