2012-01-30, 02:54
I'm getting quite a strange bug with Xbmc Json android and authentication.
For authentication i use the simple basic way with the Authorization header. (But i got the same result with Authenticator).
If i disable Xbmc auth, all my code works perfect.
If i enable password all standard json requests works ok. But all batch request send a parse error.
The logs in debug shows :
I'm quite lost ... but it looks like a problem with some headers request size and Xbmc.
For authentication i use the simple basic way with the Authorization header. (But i got the same result with Authenticator).
If i disable Xbmc auth, all my code works perfect.
If i enable password all standard json requests works ok. But all batch request send a parse error.
The logs in debug shows :
Quote:01:49:42 T:12112 DEBUG: JSONRPC: Incoming request: User-Agent: Dalvik/1.4.0 (Linux; U; Android 2.3.6; GT-I9100 Build/GINGERBREAD)with the exact same code on second earlier :
Host: 192.168.0.11:90
Connection: Keep-Alive
Content-Length: 665
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
01:49:42 T:12112 ERROR: JSONRPC: Failed to parse 'User-Agent: Dalvik/1.4.0 (Linux; U; Android 2.3.6; GT-I9100 Build/GINGERBREAD)
Host: 192.168.0.11:90
Connection: Keep-Alive
Content-Length: 665
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
Quote:01:49:41 T:12112 DEBUG: JSONRPC: Incoming request: {"id":1,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
01:49:41 T:12112 DEBUG: JSONRPC: Calling player.getactiveplayers
I'm quite lost ... but it looks like a problem with some headers request size and Xbmc.