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] Response 401: Scrobbles unsuccesful #234

Closed
brijazz opened this issue Dec 26, 2022 · 5 comments
Closed

[BUG] Response 401: Scrobbles unsuccesful #234

brijazz opened this issue Dec 26, 2022 · 5 comments
Labels
upstream Bug in a dependency

Comments

@brijazz
Copy link

brijazz commented Dec 26, 2022

Describe the bug

I believe the Trakt API is back online now, but I'm having issues scrobbling. Running trakts status returns the following:

The scrobbler is running
Monitored players: plex
No activity yet.

To troubleshoot, I revoked my TraktScrobbler access from my account at https://trakt.tv/oauth/authorized_applications and successfully ran trakts auth --force

However, my logs show:

2022-12-22 06:47:39,054 - DEBUG - scrobbler - utils - Response: <Response [401]>
2022-12-22 06:47:39,054 - WARNING - scrobbler - scrobbler - Scrobble unsuccessful. Discarding it.

I see these messages attached with each episode that I've played recently.

Desktop (please complete the following information):

  • Mac OS X 10.13.6
  • Python 3.9.12
  • Plex for Apple TV / Plex Web
@iamkroot
Copy link
Owner

iamkroot commented Dec 27, 2022

After re-running the auth, you need to restart the scrobbler for the changes to take effect: trakts start -r

To anyone else facing Response [401], run these steps:

  1. trakts auth --force to get a new API key
  2. trakts start --restart to restart the app
  3. (Optional) trakts backlog clear to send the scrobbles from downtime.

@brijazz
Copy link
Author

brijazz commented Dec 27, 2022 via email

@anjo-cheenath
Copy link

anjo-cheenath commented Dec 27, 2022

Hello. I was facing the same issue. My OS is Windows 11. My scribbler was not working since Dec 10, 2022. I revoked access from trakt website then tried to run the command trakts auth --force however, I got the following response

OSError

  [WinError -2147024809] The parameter is incorrect
  at .local\pipx\venvs\trakt-scrobbler\lib\site-packages\desktop_notifier\winrt.py:75 in __init__
       71│     ) -> None:
       72│         super().__init__(app_name, app_icon, notification_limit)
       73│         self._appid = CoreApplication.get_id()
       74│         self.manager = ToastNotificationManager.get_default()
    →  75│         self.notifier = self.manager.create_toast_notifier(self._appid)
       76│
       77│     async def request_authorisation(self) -> bool:
       78│
       79│         Request authorisation to send notifications.

How should I proceed?

@iamkroot
Copy link
Owner

iamkroot commented Dec 30, 2022

@anjo-cheenath See #224 Should be fixed in v1.6.1

@iamkroot iamkroot added the upstream Bug in a dependency label Dec 31, 2022
@iamkroot
Copy link
Owner

Closing this for now. If someone else is facing this, feel free to reopen.

@iamkroot iamkroot pinned this issue Dec 31, 2022
@iamkroot iamkroot changed the title [BUG] Scrobbles unsuccesful, being discarded [BUG] Response 400: Scrobbles unsuccesful Dec 31, 2022
@iamkroot iamkroot changed the title [BUG] Response 400: Scrobbles unsuccesful [BUG] Response 401: Scrobbles unsuccesful Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Bug in a dependency
Projects
None yet
Development

No branches or pull requests

3 participants