-
Notifications
You must be signed in to change notification settings - Fork 113
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
Error 401 / Error running sync command: object of type 'NoneType' has no len() #1836
Comments
Problem appears related to 'watchlist' option:
─────────────────╮ Options 'movies' and 'shows' end normally. |
edit your post and put terminal output to code blocks |
Seems same error reported here: no info whether this appeared with upgrade (did you try downgrading) or is this new install? have you changed your config recently? from trace I guess you are using managed account? |
The problem has appeared after upgrade to 0.29.2 from 0.28.12. Last run under that version ended without error. I have not tried downgrading. 'plextraktsync sync' is run from a cron job, with other commands, such as self-update, run manually as and when. Config has not changed since the installation last year. Not sure what you mean by managed account. Plex, with Plex Pass, is running on an M1 Mac Mini, on which I also have Handbrake installed. Storage is on 2 Synology diskstations, totalling 14TB, with about 5.7TB currently free. I have (hopefully) edited my previous post as suggested. |
you need to test downgrade to see if it's code error or something at trakt.tv side has changed. i.e does the old downgraded version still work? try to pin point exact version what caused breakage if that's the case. |
and managed account: |
this still needs edit (scroll to see your whole post): |
you may try this pr: but in short, seems your plex account token is missing or expired or whatever reason plex.tv is rejecting it:
plex-login subcommand may help. |
syncing watchlist requires plex account oken, if you can't have it, you can turn off and sync to playlist instead # If you prefer to fetch trakt watchlist as a playlist instead of
# plex watchlist, toggle this to true (is read only if watchlist=true)
watchlist_as_playlist: true |
Right, now I see that 'managed' account refers to Plex. Thank you. I have got it running to completion, but it took several attempts using the 'plex-login' option. Initially, all attempts to log-in using the pwd (which hadn't been changed) failed, with either the Plex username or Plex account e-mail address. Eventually, after changing the pwd for the username (me), and some https errors (apparently expected), it connected and wrote details to a .yml file.. I see that you are implementing a friendlier error message for this problem. Thanks again for your help. |
Confirmation
The problem
Fillms and Tv programmes are scanned; after ratings are read, fails with:
Updated liked list in 0.0 seconds
ERROR Error during [redacted] account access: (401) unauthorized;
Steps to reproduce the behavior
Error trace / logs
Expected behavior
Normal end of run.
Inspect of problematic items
No response
Workarounds
No response
Install method
pipx
Config file contents
Version
0.29.2
Python Version
3.11.3
Plex Server Version
1.40.0.7998
Operating System and Version
macOS-14.3.1
The text was updated successfully, but these errors were encountered: