2019-02-04, 01:57
Windows curl is notoriously flakey and I got the same message when using it. However, the same curl command worked on both of my linux boxes. The HTTP command works in both chrome and firefox on windows. You can try the following which will give you a much more verbose response. It may help you track down any issues you're having.
curl -i -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"wait":false,"addonid":"plugin.video.surveillanceroom","params":{"action":"show_preview","camera_number":"1","id":"1"}},"id":"2"}' http://10.17.5.60:8080/jsonrpc -lrpc=trace -v
Some other things to try: save the above command in notepad ++ and make sure the encoding is set to utf-8. Also, replace the symbols ' and " with your same keyboard symbols--could be an encoding issue. Other than that, I'm out of suggestions. Maybe the author can jump in and confirm the syntax of the call. Some curl experts might be able to help with windows curl....
curl -i -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"wait":false,"addonid":"plugin.video.surveillanceroom","params":{"action":"show_preview","camera_number":"1","id":"1"}},"id":"2"}' http://10.17.5.60:8080/jsonrpc -lrpc=trace -v
Some other things to try: save the above command in notepad ++ and make sure the encoding is set to utf-8. Also, replace the symbols ' and " with your same keyboard symbols--could be an encoding issue. Other than that, I'm out of suggestions. Maybe the author can jump in and confirm the syntax of the call. Some curl experts might be able to help with windows curl....