Kodi Community Forum
Player.Open parse error with valid JSON - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174)
+---- Thread: Player.Open parse error with valid JSON (/showthread.php?tid=348754)



Player.Open parse error with valid JSON - tripkip - 2019-10-27

Post Request application/json body
json:

{
    "jsonrpc": "2.0",
    "method": "Player.Open",
    "params": {
        "item": {
            "file": "plugin://plugin.video.youtube/?action=play_video&videoid=cXbCGVHFsf0"
        }
    },
    "id":1
}

Response
json:

{
"error": {
"code": -32700,
"message": "Parse error."
},
"id": null,
"jsonrpc": "2.0"
}



RE: Player.Open parse error with valid JSON - Skinnerxyz - 2021-03-23

why nobody answers here?

i have exact the same error?!


RE: Player.Open parse error with valid JSON - kepstar - 2021-10-08

(2021-03-23, 17:16)Skinnerxyz Wrote: why nobody answers here?

i have exact the same error?!
try changing 
"file": "plugin://plugin.video.youtube/?action=play_video&videoid=cXbCGVHFsf0"
to
"directory": "plugin://plugin.video.youtube/?action=play_video&videoid=cXbCGVHFsf0"

hope that helps