Opened 14 years ago
Closed 14 years ago
#1844 closed defect (invalid)
An issue with json-rpc error server response.
Reported by: | Owned by: | Dustin Machi | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | RPC | Version: | 0.4 |
Keywords: | json rpc error object | Cc: | |
Blocked By: | Blocking: |
Description
JSON-RPC response returns corrupted data (inner "error" object) to error callback function.
The problem server response data: { "id":1, "version":1, "error" : { "name" : "JSONRPCError", "code" : 123, "message" : "An error occurred parsing the request object.", "error" : { "name" : "JSONError", "message" : "Bad array", "at" : 42, "text" : "some info" } } }
The root of the problem is the use of "new Error" wrapper to response error object
Note: See
TracTickets for help on using
tickets.
I'm not sure how a bogus JSON-RPC response from your server is a bug in Dojo. Marking invalid unless and until you can provide a test case that shows that this is a Dojo bug.