chorus icon indicating copy to clipboard operation
chorus copied to clipboard

jsonrpc call error

Open ghost opened this issue 10 years ago • 0 comments

when trying to call jsonrpc with parameters other then string, it fails, example: TVShow id 11 delete

[
    {
        "error": {
            "code": -32602,
            "data": {
                "method": "VideoLibrary.RemoveTVShow",
                "stack": {
                    "message": "Invalid type string received",
                    "name": "tvshowid",
                    "type": "integer"
                }
            },
            "message": "Invalid params."
        },
        "id": 1,
        "jsonrpc": "2.0"
    },
    [
        "11"
    ]
]

params shouldn't be in quotes

ghost avatar Dec 15 '14 21:12 ghost