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

[BUG] plex: 401 Client Error #170

Closed
listy-bit opened this issue Dec 27, 2021 · 5 comments
Closed

[BUG] plex: 401 Client Error #170

listy-bit opened this issue Dec 27, 2021 · 5 comments
Labels
needs-more-info Awaiting more info from the user's end

Comments

@listy-bit
Copy link

listy-bit commented Dec 27, 2021

Trakts fails to scrobble any Plex video, reporting a 401 permission error with Plex.

Desktop (please complete the following information):

  • OS and Version: Mac 10.10
  • Python Version: 3.8.5
  • Player and Version: Plex 1.22.2.4282-a97b03fad
  • Trakts 1.3.2

To Reproduce

Steps to reproduce the behavior:

  1. Play any item in any player
  2. See error in log file

$trakts auth gives result: Token valid until 01/05/22
$trakts plex gives result: Plex token is saved.

To Resolve
$trakts init

I have no idea why plex would suddenly reject trakts.
Shouldn't $trakts plex delete the stored token and start authorisation again? For me it seems to just confirm that there is a token, without checking it's valid.

Log file

Click to see log contents

2021-12-24 23:32:30,185 - ERROR - plex - monitor - Error while getting data from plex: 401 Client Error: Unauthorized for url: http://localhost:32400/status/sessions
2021-12-24 23:32:30,212 - WARNING - plex - monitor - plex monitor stopped

@iamkroot
Copy link
Owner

It does seem like an auth error. But trakts plex will not try to override your token, and there's no trakts plex delete. You need to run trakts plex --force in order to clear the token and redo it.

@iamkroot iamkroot added the needs-more-info Awaiting more info from the user's end label Feb 18, 2022
@wmazoni
Copy link

wmazoni commented Sep 21, 2023

I am also accepting the same error on windows. It is as if the password entered is not being accepted in the terminal.

@iamkroot
Copy link
Owner

@wmazoni try trakts plex --force again? And make sure the plex server url is correct

@wmazoni
Copy link

wmazoni commented Sep 25, 2023 via email

@iamkroot
Copy link
Owner

iamkroot commented Oct 8, 2023

Closing this in favor of #234

@iamkroot iamkroot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info Awaiting more info from the user's end
Projects
None yet
Development

No branches or pull requests

3 participants