Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 Unauthorized when opening any content #39

Open
jallen2281 opened this issue May 7, 2020 · 9 comments
Open

401 Unauthorized when opening any content #39

jallen2281 opened this issue May 7, 2020 · 9 comments

Comments

@jallen2281
Copy link

jallen2281 commented May 7, 2020

Hi there,

Kitana itself works, and you can browse through all the available content, however, if you click on certain channels shows, you get this:
Error on Plexy (see log): 500 Server Error: Internal Server Error for url: https://192-168-10-60.ab702f58bd984d18abd3648e3cb7a6af.plex.direct:32400/video/lifetime/seasons?title=24%20To%20Life&url=http://www.mylifetime.com/shows/24-to-life

If you follow the URL in the error, you get a 401 Unauthorized error.

I've also verified that this same problem exists locally, if you append the uri to the server, although I'm not sure that even SHOULD work? (http://ip:port/video/lifetime/seasons?title=24%20To%20Life&url=http://www.mylifetime.com/shows/24-to-life)

Some of the shows that open outside of the app in their own window are working fine. i.e - The CW, or HGTV Canada shows.

Any help is appreciated.

@jhackeur
Copy link

jhackeur commented May 25, 2020

Hi,
I got exactly the same issue (with channel trakt.tv)- no solution find yet...

@pannal
Copy link
Owner

pannal commented Jan 23, 2021

Is this still an issue?

@timothevs
Copy link

Hi @pannal , yes this is still an issue. I have tried all modes, Direct, Relay, and remote.

@ewascome
Copy link

Not working for me either.

@githubJond
Copy link

same here - got following answer when i put the url manually:

Traceback (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request result = f(**d) File "/usr/lib/plexmediaserver/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 122, in call identifier = self._core.identifier File "/usr/lib/plexmediaserver/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/messaging.py", line 86, in call_external_function packed_result = self._core.networking.http_request(url, cacheTime=0, timeout=None, immediate=True).content File "/usr/lib/plexmediaserver/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 346, in http_request return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method) File "/usr/lib/plexmediaserver/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 118, in init self.load() File "/usr/lib/plexmediaserver/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load f = self._opener.open(req, timeout=self._timeout) File "/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/urllib2.py", line 435, in open response = meth(req, response) File "/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/urllib2.py", line 548, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/urllib2.py", line 473, in error return self._call_chain(*args) File "/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/urllib2.py", line 556, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 404: Not Found

Any solution for this - need to do a full sync with the trakt-scrobbler plug-in

@pannal
Copy link
Owner

pannal commented Mar 5, 2021

Wait. Just because you're all seeing something vaguely similar doesn't mean you have the same issues as the OP.

OP sees a 401 because he tried opening a Plex URL without supplying X-Plex-Token. That's normal. His issue is probably originally because of the full unescaped http URL in his parameter.

I can only help you individually if you supply sufficient logs and information about your environments.

@pannal
Copy link
Owner

pannal commented Mar 14, 2021

@jallen2281 please provide logs for the original issue

@gitthangbaby
Copy link

i was looking for the solution for one year, finally found the token (somehow secretive) in Plex movie infor -> XML.

@pannal
Copy link
Owner

pannal commented Apr 7, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants