Iris version
3.70.0
Operating system(s) affected
Browser(s) affected
What happened?
I tried creating a custom command, that talks to mopidy itself to clear the tracklist.
I did this by telling iris to send a request to http://localhost:6680/mopidy/rpc with the headers content-type: application/json and the following body:
{"jsonrpc": "2.0", "id": 1, "method": "core.tracklist.clear"}
When trying this command, iris sends the following body instead:
"{\"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"core.tracklist.clear\"}"
This seems like iris is sserializing the string, instead of directly passing it to the request. This could be because of these lines in core.py.
As a temporary fix, I've removed these lines in my mopidy instance, which seems to fix the issue
Logs
Iris version
3.70.0
Operating system(s) affected
Browser(s) affected
What happened?
I tried creating a custom command, that talks to mopidy itself to clear the tracklist.
I did this by telling iris to send a request to
http://localhost:6680/mopidy/rpcwith the headerscontent-type: application/jsonand the following body:{"jsonrpc": "2.0", "id": 1, "method": "core.tracklist.clear"}When trying this command, iris sends the following body instead:
"{\"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"core.tracklist.clear\"}"This seems like iris is sserializing the string, instead of directly passing it to the request. This could be because of these lines in core.py.
As a temporary fix, I've removed these lines in my mopidy instance, which seems to fix the issue
Logs