id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 2724,JSON-RPC not forwarding exceptions/errors causing browser to time-out on calls,amain,,"ui/web/json_api.py: {{{ def _on_rpc_request_failed(self, reason, response, request): """""" Handles any failures that occurred while making an rpc call. """""" request.setResponseCode(http.INTERNAL_SERVER_ERROR) }}} Above code will never send back a JSON-RPC response to the browser. Causing the browser to time-out. This can easily be reproduced by raising an DelugeError exception in one of the Deluge daemon @export RPC methods. As a result exceptions can't be used to inform browser on RPC failures. Note that there is also no other mechanism in Deluge to create JSON-RPC error responses. Making it hard to handle errors generically in the browser. ",bug,closed,major,2.0.0,Web UI,1.3.11,Fixed,"exception, error, rpc, json",