Issue 37 in jayrock: JsonRpcClient error not throwing an exception

7 views
Skip to first unread message

jay...@googlecode.com

unread,
Jun 30, 2011, 5:18:05 AM6/30/11
to jayrock...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 37 by rgra...@gmail.com: JsonRpcClient error not throwing an
exception
http://code.google.com/p/jayrock/issues/detail?id=37

What steps will reproduce the problem?
Invoke a JSON RPC which responds with an error in the format:
{
result: null,
error: { message: 'Some message here', code: 123 },
id: 1
}

What is the expected output? What do you see instead?
Expected an exception to be thrown.
Instead a null is returned.

Please provide any additional information below.
Because the result: null is the first item in the collection, it will be
evaluated and returned before the error is evaluated. Fix attached.

Attachments:
JsonRpcClient.cs 5.5 KB

jay...@googlecode.com

unread,
Jul 4, 2011, 12:29:15 PM7/4/11
to jayrock...@googlegroups.com
Updates:
Status: Accepted
Owner: azizatif
Labels: Component-JSON-RPC Milestone-Release1.0

Comment #1 on issue 37 by azizatif: JsonRpcClient error not throwing an
exception
http://code.google.com/p/jayrock/issues/detail?id=37

(No comment was entered for this change.)

jay...@googlecode.com

unread,
Jul 4, 2011, 12:33:17 PM7/4/11
to jayrock...@googlegroups.com
Updates:
Status: Started

Comment #2 on issue 37 by azizatif: JsonRpcClient error not throwing an

jay...@googlecode.com

unread,
Jul 4, 2011, 12:37:30 PM7/4/11
to jayrock...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 37 by azizatif: JsonRpcClient error not throwing an
exception
http://code.google.com/p/jayrock/issues/detail?id=37

This issue was closed by revision 0df7b70e7394.

Reply all
Reply to author
Forward
0 new messages