Skip to content

Conversation

@enoch85
Copy link
Contributor

@enoch85 enoch85 commented Jan 7, 2026

Implements round-robin connection fallback for Plex servers with multiple connection addresses, fixing library fetch failures when the primary connection is unavailable.

Changes

Backend:

  • Store all connection URIs from plex.tv in `server_connections` for round-robin fallback
  • Try connections sequentially (primary first, then fallbacks) when fetching libraries
  • Auto-update stored connections when servers refresh
  • Add connection attempt logging

Frontend:

  • Show loading message while fetching libraries
  • Auto-select and save single server after OAuth (multiple servers require manual selection)
  • Pass all connection URIs when selecting server
  • Display verified connections with latency
  • Invalidate libraries query after server selection

- Store all connection URIs from plex.tv for round-robin fallback
- Try connections in order (primary first, then fallbacks) when fetching libraries
- Add loading message 'Fetching libraries... This might take a moment.'
- Auto-select and save single server after OAuth authentication
- Update connection list when servers are refreshed
- Display verified connections with availability status and latency
- Invalidate libraries query after server selection for immediate fetch
- Add logging for connection attempts: 'Attempting to fetch libraries from connection X/Y'
- Fix library selector to only enable when server is selected and available

Resolves issue where users with multiple Plex server addresses would fail to fetch libraries when primary connection was unavailable.
@morpheus65535
Copy link
Owner

Check if logging to info level is always required to prevent having noise when everything run as expected. Also, don't modify package-lock.json if not required.

@enoch85
Copy link
Contributor Author

enoch85 commented Jan 9, 2026

@morpheus65535 should be good now 👍

@morpheus65535 morpheus65535 merged commit fd985d7 into morpheus65535:development Jan 10, 2026
5 checks passed
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.

2 participants