Opened 9 years ago

Closed 8 years ago

Last modified 6 years ago

#2724 closed bug (Fixed)

JSON-RPC not forwarding exceptions/errors causing browser to time-out on calls

Reported by: amain Owned by:
Priority: major Milestone: 2.0.0
Component: Web UI Version: 1.3.11
Keywords: exception, error, rpc, json Cc:



    def _on_rpc_request_failed(self, reason, response, request):
        Handles any failures that occurred while making an rpc call.

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.

Change History (4)

comment:1 Changed 9 years ago by Cas

What would you suggest as a solution?

comment:2 Changed 8 years ago by bro

  • Resolution set to Fixed
  • Status changed from new to closed

comment:3 Changed 8 years ago by Cas

  • Milestone changed from 1.3.x to 2.0

comment:4 Changed 6 years ago by Cas

  • Milestone changed from 2.0 to 2.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.