2010-03-27, 07:10
I've spent 2 days trying to debug what's wrong with my app, but I've had no success. I'm using the Android device emulator to make an http post to
http://10.0.2.2/jsonrpc
with the json string:
but the post is not going through. xbmc.log shows:
and the json returned is a parse error, so clearly the post isn't getting through.
I've modified the exact same Android code to post to another web server I have running on a different port, and I can see the post and the json string come through. Is there anything on the xbmc client side that would specifically prevent the Android emulator from posting data to the web server? Also frustrating is that I'm able to easily post to the server using python.
http://10.0.2.2/jsonrpc
with the json string:
Code:
{"method":"VideoLibrary.GetTVShows","params":{"fields":["title"]},"id":1,"jsonrpc":"2.0"}
but the post is not going through. xbmc.log shows:
Code:
NOTICE: WebServer: POST | /jsonrpc
INFO: JSONRPC: Recieved a jsonrpc call -
ERROR: JSONRPC: Failed to parse ''.
and the json returned is a parse error, so clearly the post isn't getting through.
I've modified the exact same Android code to post to another web server I have running on a different port, and I can see the post and the json string come through. Is there anything on the xbmc client side that would specifically prevent the Android emulator from posting data to the web server? Also frustrating is that I'm able to easily post to the server using python.