Error during Plex account access : Invalid token
See original GitHub issueConfirmation
- 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
Issue Analytics
- State:
- Created a year ago
- Comments:28
Top Results From Across the Web
Plex Media Server can't sign in to Plex account or be claimed
In some rare cases, Plex Media Server may have trouble signing in to an otherwise-valid Plex account. This is almost always caused by ......
Read more >Unable to connect to Plex Server: Invalid Token - Help & Support
When using the connect option for Plex Media Server I receive the following error in the logs Unable to connect to Plex Server:...
Read more >If you are getting Access Denied or "failed sign in attempt by ...
It looks like when plex added usernames to email only accounts it got weird. Or something else happened, who knows?
Read more >Unable to sync [Unable to retrieve account details from plex.tv]
I'm seeing the same error in the logs ("Plex account is missing the server token"), but automatic syncing and scrobbling still seem to...
Read more >Where to Get the Plex Token? - Plexopedia
You may need to make the tokens associated with your Plex server invalid. Since they are used to authenticate to your server, you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, version
0.21.5released now has the patch.Ahh that did the trick.
.env