JSON blocking/timeout with Player.Open
#4
(2017-02-19, 19:48)mattm Wrote: When starting a playlist of images using Player.Open thru a JSON request, I get no reply until the player is stopped.
Is this correct behaviour ?

This is rather annoying as it causes plugin code to completely hang.
First observed using the python api, I confirmed with curl as well.
I'm running Kodi 17.0 under Ubuntu Linux.

The request which hangs is:
{"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"playlistid":2}},"id":1}

Thank you for your help.

I just upgraded from v15.0 to v17.3 on Android and this behavior is new to v17.3 (compared to v15.0). This is a bug.

What I mean by bug is that it's not described in the documentation. If you have code that checks for the OK status to know that the command was sent correctly, that it was formatted correctly, then this behavior breaks that code.

I'm using curl and the lack of a response is blocking. Any help would be appreciated.

Update: Not all my code is in curl. My other programs are proving difficult to fix because, even if I fire/forget the request the request later times out throwing an exception. This means I have to async not only the request but a try/catch wrapper around the command that eats the exception. This basically prevents me from trapping of errors like "system offline" or malformed request, etc.
Reply


Messages In This Thread
RE: JSON blocking/timeout with Player.Open - by hurlbert - 2017-06-20, 19:04
Logout Mark Read Team Forum Stats Members Help
JSON blocking/timeout with Player.Open0