[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #21036 [Metrics/Onionoo]: Onionoo doesn't return JSON for error responses
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs