Closed ElishaDev closed 6 years ago
@D3vJust Check the access rights for the Tvheadend user. The user needs "Web interface", Streaming > "Basic", and Video recorder > "Basic". I've updated the setup steps with a screenshot of the necessary rights, let's see if that resolves the issue.
@taligentx The user has enough rights. If I make a manually wget with the username and password it's working fine.
I also checked the rights again. But still not working.
That's odd. Are you testing wget from the same system running PMS? Let's see the full output from:
wget --auth-no-challenge http://username:password@address:9981/api/serverinfo
There's something strange happening if you can run the above command successfully from the PMS system CLI and PMS throws HTTP 401. Details on your setup for Tvheadend and PMS would be useful.
The wget from the same system running PMS is working fine.
I'm using HTS Tvheadend 4.3-1288~g66d6161c5 and plexmediaserver version is 1.13.2.5154.
But still getting Error accessing Tvheadend: HTTP Error 401: Unauthorized
.
From a local system with PMS and tvheadend installed it's also not working. Same problem here.
I can replicate this by building the current unstable Tvheadend from source. If you need the unstable branch, the 4.3@cf097d4 release authorizes correctly:
https://github.com/tvheadend/tvheadend/releases/tag/v4.3
Otherwise, stable 4.2 works correctly as well. I'll take a look at what's changed with HTTP basic auth since 4.3@cf097d4 to see what's causing the issue but for now I'll add a note that only the stable release is supported. Thanks for the heads-up!
The default HTTP authentication type changed to Digest in the current builds of Tvheadend 4.3. The Plex plugin framework doesn't support digest authentication so I've rewritten the authentication.
I’m getting a error in the livetvh log: