2012-08-13, 23:02
(2012-08-13, 18:38)Tolriq Wrote: It seems RPI is very very slow at bug json answering. The new 2.4.0 have larger timeouts it will perhaps works better, if not there's a new debug option in advanced settings that generate a full log on your sdcard (/android/data/org.leetzone..../files/debug.log).
Please send it back to me.
I've watched the logs and found
Code:
2012-08-13 21:28:42.931 Verbose/WidgetUpdateService: Service.onStartCommand@438: onStart
2012-08-13 21:28:42.933 Verbose/WidgetUpdateService: Thread.run@856: Thread started
2012-08-13 21:28:42.943 Verbose/JsonRpc: e.a@101: Request : [{"id":0,"jsonrpc":"2.0","method":"Player.GetActivePlayers"},{"id":1,"jsonrpc":"2.0","method":"Application.GetProperties","params":{"properties":["volume","muted"]}}]
2012-08-13 21:28:42.949 Error/JsonRPC: e.a@101: Error parsing
Using a chrome extension I trying replicating the request, and got Status:415 Unsupported Media Type with an empty response.
By sending a header "content-type: application/json", I was able to get a valid response : Status:200 OK
Code:
[ {"id":0,"jsonrpc":"2.0","result":[]},{"id":1,"jsonrpc":"2.0","result":{"muted":false,"volume":100}} ]
Are you sending this header in your requests? I know that maybe this a RPi-only issue, but if the solution could as simple as that...
Thanks