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

Unable to Link with Plex Account #1222

Open
preeefix opened this issue Feb 3, 2025 · 4 comments · May be fixed by #1234
Open

Unable to Link with Plex Account #1222

preeefix opened this issue Feb 3, 2025 · 4 comments · May be fixed by #1234

Comments

@preeefix
Copy link

preeefix commented Feb 3, 2025

tl;dr: Attempting to link Plex via the WebUI and ShokoDesktop fails.

Following the process documented in the docs, I'm getting the following errors in the logs and it doesn't give me the choice to select the server.

Attempting to perform the same action on Desktop results in the same error.

Server Version: 5.1.0.0
Web Version: 2.2.0
Desktop Version: 4.3.0.0

2025-02-02 17:40:23
Trace
Requesting from plex: GET https://plex.tv/users/account.json
2025-02-02 17:40:24
Trace
Got response: UnprocessableEntity
2025-02-02 17:40:24
Trace
Requesting from plex: GET https://plex.tv/users/account.json
2025-02-02 17:40:25
Trace
Got response: UnprocessableEntity
2025-02-02 17:40:25
Trace
Requesting from plex: GET https://plex.tv/users/account.json
2025-02-02 17:40:26
Trace
Got response: UnprocessableEntity
2025-02-02 17:40:26
Trace
Requesting from plex: GET https://plex.tv/users/account.json
@natyusha
Copy link
Contributor

natyusha commented Feb 3, 2025

Do you happen to have 2FA on your Plex account? If so see if it works after disabling it or try appending the auth to the password. password2FA

Nvm, I tested it with 2FA and it is fine what I said above is irrelevant.

@kaigame
Copy link

kaigame commented Feb 21, 2025

How did you fix your issue? I'm having the same problem, with and without 2fa

@krbrs
Copy link
Contributor

krbrs commented Mar 27, 2025

so mine was already linked and suddenly I had to relog again and getting the same error. I will try to find out what changed on the plex part but can't promise anything - maybe someone else knows what has changed in the last few months there on server side? Also happens on latest daily server + webui.

edit:

curl -H "X-Plex-Token: redacted" https://plex.tv/users/account.json
gives json output on shokoserver cli, so that works, if i copy the Token from XML details of a file on Plex web. need to investigate further on that part around the auth

krbrs added a commit to krbrs/ShokoServer that referenced this issue Mar 27, 2025
Completely revert commits on PlexHelper.cs from Jan 3, 2025 because they break Plex linking. What wanted to be done there needs to be looked at again later. Fixes ShokoAnime#1222
@krbrs krbrs linked a pull request Mar 27, 2025 that will close this issue
@krbrs
Copy link
Contributor

krbrs commented Mar 27, 2025

Possible fix pushed, was able to link on my dev instance after reverting the changes mentioned in my PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants