[luci] invalid params during uci json rpc
Ryan Nowakowski
tubaman at fattuba.com
Thu Jan 20 19:35:25 CET 2011
Hello,
I'm getting this:
{'jsonrpc': '2.0', 'id': 1, 'error': {'message': 'Invalid params.', 'code': -32602, 'data': 'invalid argument count'}}
When I make this json rpc call:
http://192.168.1.1/cgi-bin/luci/rpc/uci?auth=cf3c1d8544a3c979ed939d949833dffc
...with this data:
{"params": ["network", "lan", "ipaddr"], "jsonrpc": "2.0", "id": 1,
"method": "get"}
Based on the documentation[1][2], it looks like the uci get call takes 3
parameters. What am I doing wrong here?
Thanks!
Ryan
1. http://luci.subsignal.org/trac/wiki/Documentation/JsonRpcHowTo
2. http://dev.luci.freifunk-halle.net/luci-doc/modules/luci.model.uci.html#Cursor.get
More information about the luci
mailing list