PlexTraktSync: Error during Plex account access : Invalid token
Confirmation
- I have read the README.md on the project homepage
- I have checked if identical issue already exists
The problem
Hi Dev Team,
Since upgrading to the latest PlexTraktSync 0.21.1 I am getting the below error when trying to execute a sync. I have updated passwords due to Plex breach and have been working since. I have also tried re-authenticating with plex to get a new token
Error trace / logs
ERROR Error during xxxxx account access: (422) unprocessable_entity; https://plex.tv/users/account <?xml version="1.0" encoding="UTF-8"?> <errors> <error>Invalid token</error> </errors>
Sync Movie sections: [<PlexLibrarySection:movie:4K Movies>, <PlexLibrarySection:movie:Movies>]
Sync Show sections: [<PlexLibrarySection:show:TV Shows>]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/app/plextraktsync/__main__.py", line 18, in <module>
cli()
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/app/plextraktsync/cli.py", line 28, in wrap
cmd(*args, **kwargs)
File "/app/plextraktsync/commands/sync.py", line 60, in sync
runner.sync(walker=w, dry_run=config.dry_run)
File "/app/plextraktsync/sync.py", line 68, in sync
self.plex_wl = {pm.guid: pm for pm in plex.watchlist()} or {}
TypeError: 'NoneType' object is not iterable
Expected behavior
Sync to start running
Steps to reproduce the behavior
docker exec -it plextraktsync plextraktsync sync --sync all
Inspect of problematic items
No response
Workarounds
Downgrade to version 0.20.10 for sync to work again
Install method
docker-compose
Version
0.21.1
Python Version
3.10.6
Operating System and Version
Ubuntu 22.04
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28
Yes, version
0.21.5released now has the patch.Ahh that did the trick.
.env