Kodi Community Forum
Internal error - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174)
+---- Thread: Internal error (/showthread.php?tid=318055)



Internal error - raphyduck - 2017-07-11

Hello guys

I am using Kodi JSON RPC interface in a custom ruby application. The 2 calls this program make were working fine until all of a sudden Kodi started returning "internal error" messages.

Example:
Code:
>> Xbmc::VideoLibrary.get_tv_shows({:properties => ["title", "year", "playcount", "episode", "imdbnumber", "premiered", "lastplayed", "season", "watchedepisodes"],
                                 :sort => {:order => 'ascending', :method => 'label'}})
Xbmc::VideoLibrary.get_tv_shows({:properties => ["title", "year", "playcount", "episode", "imdbnumber", "premiered", "lastplayed", "season", "watchedepisodes"],
                                 :sort => {:order => 'ascending', :method => 'label'}})
{"error"=>{"code"=>-32603, "message"=>"Internal error."}, "id"=>"1", "jsonrpc"=>"2.0"}
Some calls still works, like:
Code:
Xbmc::JSONRPC.version
{"id"=>"1", "jsonrpc"=>"2.0", "result"=>{"version"=>{"major"=>8, "minor"=>0, "patch"=>0}}}
=> {"version"=>{"major"=>8, "minor"=>0, "patch"=>0}}
but most of them now always return this internal errors.

Using a browser request like "http://192.168.0.100:8080/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22id%22:1,%22method%22:%22VideoLibrary.GetMovieSets%22}" returns the same.

Nothing relevant in kodi.log. Anyone can help me debug this?

thanks
Raph