wrboyce / plexheadend

TVHeadend/PlexDVR Proxy
Apache License 2.0
49 stars 8 forks source link

plexheadend not working anymore - Bad Request 400 #2

Open vistalba opened 6 years ago

vistalba commented 6 years ago

Hi all

I'm using plexheadend for month and worked as expected.

Today I wan't to watch some LiveTV stuff and it didn't work.

Some troubleshooting later: It looks like plexheadend does the request like http://user:pass@tvheadendurl:port but this ends up in error 400 (Bad Request) on tvheadend.

I opend a bash inside of plexheadend docker and tried around with curl. It looks like tvheadend doesn't support user:pass@tvheadendurl at all :(

If I allow anonymous access for everyone on tvheadend, connectivity from plexheadend docker to tvheadend works fine.. so that shouldn't be the problem.

Any idea why this happen now?

jeee commented 6 years ago

How did you configure tvheadend and run plexheadend to get it going at all? I put a log line in the code and get no channels because of a 401 auth error:

2018/03/29 22:38:02 baseurl: %!(EXTRA string=http://plex:plex@192.168.1.113:9981) 2018/03/29 22:38:02 resp%!(EXTRA *http.Response=&{401 Unauthorized 401 HTTP/1.1 1 1 map[Cache-Control:[no-cache] Www-Authenticate:[Digest realm="tvheadend", qop="auth", nonce="675d0a0fcf0e74cc92d45a17cd27fcfd", opaque="2c40bef1083d6125ae610f8f3bbb4131"] Connection:[Keep-Alive] Content-Type:[text/html] Server:[HTS/tvheadend]] 0xc4201d01e0 -1 [] false true map[] 0xc4201f6900 }) 2018/03/29 22:38:02 apiResp%!(EXTRA []main.apiChannel=[]) 2018/03/29 22:38:02 Got 0 channels from tvheadend

Maybe a good idea as well to print a warning on an authentication error.

jeee commented 4 years ago

In case someone else tries; tried it again with the fork ( https://github.com/mutluerol/plexheadend ) and now it does something. Running it on the same server as plex with: ./plexheadend --tvh-user plexheadend --tvh-pass mypassword --tvh-host 192.168.3.1 --tvh-port 9981 --proxy-listen 8001

The adding of the tuner is still a bit weird, it shows and then disappears but when I continue it shows the channels. The tvheadend user needs to have basic streaming and web interface access for it to work. I pointed the guide to http://localhost:8001/xmltv