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

401 Unauthorized for Managed User #82

Closed
camsterguy opened this issue Nov 18, 2024 · 5 comments
Closed

401 Unauthorized for Managed User #82

camsterguy opened this issue Nov 18, 2024 · 5 comments

Comments

@camsterguy
Copy link

Describe the bug

pd_zurg is stating 401 unauthorized for user i added, please check token

To Reproduce

Adding a managed local user via Plex home, using firefox dev tools to identify the token for the user, adding the user to pd_zurg settings with the token

Expected behavior

Using the other user to pd_zurg so my other user can add stuff to their watchlist which will also download

Screenshots

Full error:
Nov 18, 2024 03:14:18 - INFO - plex_debrid subprocess: [18/11/24 03:14:18] plex error: (401 unauthorized): token for user 'sammie' does not seem to work. check your plex user settings.

Please complete the following information:

  • OS: Linux
  • Version: Mint
  • Supporting Applications: Docker Containers

Additional context

Does zurg not support managed users? Maybe I would just need to delegate access to another plex email / user as opposed to plex home managed users

Thanks for any help!

@camsterguy
Copy link
Author

camsterguy commented Nov 18, 2024

When adding the user, what should i use for the username? The exact name I made for the managed user?

This is an API readout, and this is the user I added. I see this token correctly (accessToken)

Should I be using one of these values for the username?

<MediaContainer friendlyName="myPlex" identifier="com.plexapp.plugins.myplex" machineIdentifier="REDACTED" size="1">
<SharedServer id="REDACTED" username="" email="" userID="REDACTED" accessToken="REDACTED" name="REDACTED" acceptedAt="1731898511" invitedAt="1731898511" allowSync="1" allowCameraUpload="0" allowChannels="0" allowTuners="1" allowSubtitleAdmin="0" owned="1" allLibraries="1" filterAll="" filterMovies="" filterMusic="" filterPhotos="" filterTelevision="">
<Section id="130523387" key="2" title="Movies" type="movie" shared="1"/>
<Section id="130523408" key="3" title="TV Shows" type="show" shared="1"/>
<Section id="130615340" key="4" title="TV Shows" type="show" shared="1"/>
</SharedServer>
</MediaContainer>

@I-am-PUID-0
Copy link
Owner

The primary plex admin should be set with the pd_zurg envs, then I believe the users would be added through the plex_debrid UI: itsToggle/plex_debrid#501

@camsterguy
Copy link
Author

The primary plex admin should be set with the pd_zurg envs, then I believe the users would be added through the plex_debrid UI: itsToggle/plex_debrid#501

Thanks for the reply!
The admin is working fine.

i created a managed user, named “Sammie”, from the plex web interface

I then launch the plex debrid ui using “docker attach pd_zurg”, go to content settings, add the user “Sammie” and the token of that user that I found by using Firefox’s network tools while logged into the managed user, clicking on a show and inspecting the network headers to copy the “X-PlexToken”. And I still get the 401 error.

I set up my environment using this tutorial:
https://docs.google.com/document/d/1wGzoV11vG2jiSiKm_EoShrcig70pWYPDYiYbAXT5jRQ/mobilebasic#heading=h.nu4h35dxqc4q

@camsterguy
Copy link
Author

Stand by, I am going to try this when I get home! Maybe it’s a different token.

itsToggle/plex_debrid#642

@camsterguy
Copy link
Author

Stand by, I am going to try this when I get home! Maybe it’s a different token.

itsToggle/plex_debrid#642

This fixed it! It was a different token indeed.

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

No branches or pull requests

2 participants