-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Describe the bug
Plex set to require secure connections prevents WatchState from adding backend
To Reproduce
- Log into app.plex.tv
- Click the wrench at the top right
- Go to -> settings -> network
- Click "Show Advanced" button if not already clicked
- Set "Secure connections" to "Required"
- Attempt to add plex as a backend in WatchState
Expected behavior
Can add Plex as a backend
Basic report
[ Basic Report ]
WatchState version: v1.0.0
PHP version: cli/8.4.12
Timezone: UTC
Data path: /config
Temp path: /config
Database migrated?: Yes
Does the '.env' file exists? Yes
Is the tasks scheduler working? Yes 'Container' - Task scheduler is running.
Running in container? Yes
Report generated at: 2025-10-30T12:09:11+00:00
It's a brand new instance so I didn't include all the empty log files and such.
Additional context
When you tell Plex to require secure connections, it makes the 32400 port require https/tls. If you use http://, it will immediately drop the connection. The "add backend" section of WatchState will properly sign in and detect all of the URLs to connect, however it shows the bare IP address ones as "http://" (such as "http://10.0.0.7"). When it tries to connect it fails. So we need a way to force https, and also to ignore the certificate name not matching (I think it's a let's encrypt certificate with the plex.direct URL).