Quantcast

Sorry for the noob question on json rpc

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Sorry for the noob question on json rpc

Edbird
I am playing with this using the Firefox plugin HTTPRequester. I have the URL to my local Apache2/Bugzilla set to:

http://localhost:8080/jsonrpc.cgi

Content-type = application/json

and my payload for the POST looks like this:


{
    "jsonrpc": "1.0",
    "method": "Bug.create",
    "id": "1",
    "params": {
       "version:" : "1.0",
       "platform": "Macintosh",
       "op_sys": "Mac OS"
     }
}

But I just get back this error:

{"error":{"message":"Invalid params for JSONRPC 1.0.","code":100400},"id":"1","result":null}

Note that I can successfully GET bugs, either via Bug.get or Bug.search, but then method and params are encoded in the URL itself.

Thanks in advance for your patience and help!!

-Eddie
Loading...