I patched it last night and Massimo has applied the PR already, so fixed in trunk
On Thursday, 13 March 2014 08:39:11 UTC+11, Federico Ferraro wrote: > > It is a bug in the library gluon/contrib/simplejsonrpc.py in line 114. > > Not specify the protocol version in the request. > > data = {'id': request_id, 'method': method, 'params': args, } > > > 2014-03-12 14:47 GMT-03:00 Michele Comitini > <michele....@gmail.com<javascript:> > >: > >> sorry Tim, wrong example. This is the right test: >> >> >> wget --post-data '{"jsonrpc": "2.0", "id": 1, "method": >> "myfunction", "params": {"a": 1, "b": 2}}' >> http://..../app/default/call/jsonrpc >> >> >> >> >> >> >> 2014-03-12 18:45 GMT+01:00 Michele Comitini >> <michele....@gmail.com<javascript:> >> >: >> >> Just put @service.jsonrpc over the action. >>> If the json payload of the client has the key 'jsonrpc' handling of >>> protocol is redirected to jsonrpc2 automatically. >>> To test use wget like: >>> >>> wget --post-data '{"jsonrpc": "2.0", "id": 1, "method": >>> "myfunction", "params": {"a": 1, "b": 2}}' >>> http://..../app/default/call/jsonrpc2 >>> >>> >>> >>> >>> 2014-03-12 11:44 GMT+01:00 Tim Richardson >>> <t...@growthpath.com.au<javascript:> >>> >: >>> >>> jsonrpc works >>>> but not jsonrpc2 >>>> >>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "web2py-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to web2py+un...@googlegroups.com <javascript:>. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > -- > Federico Ferraro > Usuario Linux : 482533. > -- > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.