[metrics-bugs] #21036 [Metrics/Onionoo]: Onionoo doesn't return JSON for error responses
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Dec 20 08:42:19 UTC 2016
#21036: Onionoo doesn't return JSON for error responses
-----------------------------+------------------------------
Reporter: lukechilds | Owner: metrics-team
Type: defect | Status: new
Priority: Low | Milestone:
Component: Metrics/Onionoo | Version:
Severity: Minor | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
-----------------------------+------------------------------
Comment (by iwakeh):
The [https://onionoo.torproject.org/protocol.html Onionoo protocol]
defines 400 as reply to bad requests. The returned data simply shouldn't
be parsed.
A general server error would also return html and clients should be able
to handle that too.
Currently, Onionoo doesn't have a more elaborate debugging/error messaging
protocol part defined. Requiring JSON as reply to malformed requests is
in the end requiring a 'debugging extension' to the protocol, i.e., error
code etc.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21036#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the metrics-bugs
mailing list