Win 401 error on localhost
#1
When calling a JSON command with CURL, it will work from a remote machine on my network, but not on the machine running Kodi.

For example, running this command using CURL
Code:
curl http://kodi:[email protected]:80/jsonrpc?request=%7B%22jsonrpc%22%3A+%222.0%22%2C+%22method%22%3A+%22VideoLibrary.GetTVShows%22%2C+%22params%22%3A+%7B+%22filter%22%3A+%7B%22field%22%3A+%22playcount%22%2C+%22operator%22%3A+%22is%22%2C+%22value%22%3A+%220%22%7D%2C+%22limits%22%3A+%7B+%22start%22+%3A+0%2C+%22end%22%3A+75+%7D%2C+%22properties%22%3A+%5B%22art%22%2C+%22genre%22%2C+%22plot%22%2C+%22title%22%2C+%22originaltitle%22%2C+%22year%22%2C+%22rating%22%2C+%22thumbnail%22%2C+%22playcount%22%2C+%22file%22%2C+%22fanart%22%5D%2C+%22sort%22%3A+%7B+%22order%22%3A+%22ascending%22%2C+%22method%22%3A+%22label%22+%7D+%7D%2C+%22id%22%3A+%22libTvShows%22%7D

From my Win10 laptop, I get a bunch of TV shows listed
From my Win10 Kodi 17b6, I get 401 error. I get the 401 error if I use localhost, IP address or 127.0.0.1

However running the same command from Chrome using the Simple REST client plugin, it works without issue

Any ideas what's going wrong?
Reply

Logout Mark Read Team Forum Stats Members Help
401 error on localhost0