Skip to content

fix: api key env name mismatch - #246

Open
nironics wants to merge 1 commit into
LumePart:devfrom
nironics:fix/plex-admin-api-key
Open

nironics wants to merge 1 commit into
LumePart:devfrom
nironics:fix/plex-admin-api-key

Conversation

@nironics

@nironics nironics commented Nov 11, 2026 •

Copy link
Copy Markdown

Two bugs meant ADMIN_API_KEY never worked for Plex, so multi-user setups failed with a 401 on /library/sections/all:

screenshot_20261110_140731
  • The setup wizard saved the key as ADMIN_SYSTEM_APIKEY, but the config reads ADMIN_API_KEY
  • AddHeader returned before attaching X-Plex-Token on its first call, and the admin client only calls it once, so the admin request went out with no token

Existing .env files written by the wizard need ADMIN_SYSTEM_APIKEY renamed to ADMIN_API_KEY. (This only applies to people who have .env files written by the wizard and not a working system setup due to the mismatch, so I imagine practically no one)

Tested to work personally as it unblocked me

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant