Page 1 of 1

Kodi Library HTTP 400 Error

Posted: 18 Oct 2016, 01:41
by baggar11
I've recently been in the process of setting up filebot with qbittorrent and kodi. I seem to have all my naming issues and run program triggers all set, but I'm now having issues getting kodi to trigger a library scan. I get the following error...

Code: Select all

Notify Kodi: 192.168.20.13:9090
GET: http://192.168.20.13:9090/jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22GUI.ShowNotification%22%2C%22params%22%3A%7B%22title%22%3A%22FileBot+finished+processing+1+files%22%2C%22message%22%3A%22Supergirl.S02E02.720p.HDTV.X264-DIMENSION%22%2C%22image%22%3A%22http%3A%2F%2Fapp.filebot.net%2Ficon.png%22%7D%2C%22id%22%3A1%7D
Server returned HTTP response code: 400 for URL: http://192.168.20.13:9090/jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22GUI.ShowNotification%22%2C%22params%22%3A%7B%22title%22%3A%22FileBot+finished+processing+1+files%22%2C%22message%22%3A%22Supergirl.S02E02.720p.HDTV.X264-DIMENSION%22%2C%22image%22%3A%22http%3A%2F%2Fapp.filebot.net%2Ficon.png%22%7D%2C%22id%22%3A1%7D
I've searched and haven't really found the reason for an http 400 error. My Kodi system is on OpenElec 6(kodi v15). Media is on a cifs share via smb://server/tvshows or smb://server/movies. Any other ways I can troubleshoot this?

Re: Kodi Library HTTP 400 Error

Posted: 18 Oct 2016, 08:21
by rednoah
Did you Enable JSON-RPC (via HTTP) yet?

Please ask the Kodi people about Kodi setup issues: http://forum.kodi.tv/

Re: Kodi Library HTTP 400 Error

Posted: 19 Oct 2016, 15:51
by baggar11
I ended up figuring this out. After enabling the following...

Code: Select all

Settings --> Network --> Remote Control --> Allow Programs on other systems to control Kodi
I noticed a new port opened up after scanning the OpenElec/Kodi system. Port 9090. From my searching, I was under the impression that filebot would use this port since it didn't use an HTTP API, but rather a TCP API. As mentioned in this post. viewtopic.php?t=2759#p15667

It turns out that the port specified in the following setting is what port Filebot uses to correctly send a library update. Default for OpenElec was 80.

Code: Select all

Settings --> Network --> Webserver --> Port
Yay!

Code: Select all

Notify Kodi: 192.168.20.13:80
GET: http://192.168.20.13:80/jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22GUI.ShowNotification%22%2C%22params%22%3A%7B%22title%22%3A%22FileBot+finished+processing+1+files%22%2C%22message%22%3A%22Tosh.0.S08E24.720p.HDTV.x264-MiNDTHEGAP%22%2C%22image%22%3A%22http%3A%2F%2Fapp.filebot.net%2Ficon.png%22%7D%2C%22id%22%3A1%7D
GET: http://192.168.20.13:80/jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22VideoLibrary.Scan%22%2C%22id%22%3A1%7D

Re: Kodi Library HTTP 400 Error

Posted: 19 Oct 2016, 16:03
by rednoah
FileBot is now using the HTTP API. It'll default to port 8080 if not otherwise specified.

Re: Kodi Library HTTP 400 Error

Posted: 19 Oct 2016, 16:17
by baggar11
Thanks for responding rednoah. Is there documentation somewhere that I was missing? I hate to be a bother on forums if the information is already out there.

Re: Kodi Library HTTP 400 Error

Posted: 19 Oct 2016, 16:26
by rednoah
The log should be self-explanatory:

Code: Select all

GET: http://192.168.20.13:80/jsonrpc?request=...
  • HTTP => It's using the HTTP API
  • 192.168.20.13 => It's using the HOST you pass in
  • 80 => It's using the PORT you pass in (and you'll see the default port if you don't)