Opened 16 years ago

Closed 15 years ago

#1119 closed defect (fixed)

dojo.rpc.JsonService error handling

Reported by: guest Owned by: Dustin Machi
Priority: high Milestone: 0.9
Component: RPC Version: 0.3
Keywords: Cc:
Blocked By: Blocking:


For server-side errors such as 404 or a badly-formed JSON-RPC response, the dojo.rpc.JsonService? does not call any errback functions.

Instead, it seems the normal callback function is called with a reference to the XmlHttp? object.

Reporter: RickMorrison?

Change History (3)

comment:1 Changed 16 years ago by [email protected]


Well-formed error responses that is, responses in the form:

{"error":"foo", "id":5}

also don't invoke the errback. In fact, they call the callback with a reference to the RPC response envelope.

Errback seems to be invoked only when callback throws an error when trying to deal with the RPC envelope.

comment:2 Changed 16 years ago by dylan

Milestone: 0.5

comment:3 Changed 15 years ago by Dustin Machi

Resolution: fixed
Status: newclosed

(In [5785]) make RpcService? and JsonService? errback properly (finally). fixes #1119

Note: See TracTickets for help on using tickets.