Opened 15 years ago
Closed 14 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: |
Description
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?@gmail.com
Change History (3)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Milestone: | → 0.5 |
---|
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [5785]) make RpcService? and JsonService? errback properly (finally). fixes #1119
Note: See
TracTickets for help on using
tickets.
Update:
Well-formed error responses that is, responses in the form:
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.