Hi list,
according to
http://www.jsonrpc.org/specification#error_object in
JSON-RPC Version 2, the error member of a response have to
contain the members 'code' and 'message'.
For me, it looks like cxxtools::json::RpcServer doesn't act
this way:
- - - - - - - - - - - - - - - - - - - - - - - -
sebastian@castle $ telnet localhost 7004
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
{ "jsonrpc": "2.0", "method": "add", "params": [8,9], "id":4}
{"jsonrpc":"2.0","id":4,"result":17}
{ "jsonrpc": "2.0", "method": "foobar", "params": [8,9], "id":4}
{"jsonrpc":"2.0","error":"no such procedure \"foobar\""}
NonsenseInputFromClient
{"jsonrpc":"2.0","error":"Missing info for 'method'"}
- - - - - - - - - - - - - - - - - - - - - - - -
Is it possible to configure cxxtools::json::RpcServer to
answer as excepted by the spec?
I am using cxxtools from Linux Mint 16 Petra repository; so
its Debian package 'libcxxtools9' Version: 2.2-1.
Thanks,
Sebastian
--
Sebastian Schöne
Radiation Physics
Helmholtz-Zentrum Dresden-Rossendorf
Phone: +49 351 260 2979
[email protected]
https://www.hzdr.de
Vorstand: Prof. Dr. Dr. h. c. Roland Sauerbrey,
Prof. Dr. Dr. h. c. Peter Joehnk
Vereinsregister: VR 1693 beim Amtsgericht Dresden
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general