jellyfin-media-player icon indicating copy to clipboard operation
jellyfin-media-player copied to clipboard

Forcing External Web Client causes a black screen on start

Open reggermont opened this issue 8 months ago • 5 comments

Describe the bug

Starting Jellyfin Media Player with forceExternalWebclient=true or with jellyfin-media-player>v1.11.0 triggers an infinite black screen after showing the Jellyfin logo

The last logs are showing the following

[info] unknown @ 0 - JS: Setting server address to https://[REDACTED]
[info] unknown @ 0 - JS: resolving connectToServers with result.State: ServerSignIn
[info] unknown @ 0 - JS: [ApiProvider] Could not get current user undefined
[info] unknown @ 0 - JS: serviceWorker registered
[info] unknown @ 0 - JS: [ConnectionRequired] not logged in, redirecting to login page [object Object]
[info] unknown @ 0 - JS: [viewContainer] tryRestoreView [object Object]
[info] unknown @ 0 - JS: Uncaught (in promise) ChunkLoadError: Loading chunk 93649 failed.
(error: https://[REDACTED]/web/session-login.753f05edd723ee338fed.chunk.js)

but nothing else happens than the black screen

To Reproduce

Steps to reproduce the behavior:

  1. Run Jellyfin server version = 10.9.7 (dunno if error specific to this version)
  2. Start Jellyfin Media Player with forceExternalWebclient=true or with jellyfin-media-player>v1.11.0

Expected behavior

Jellyfin Media Player starting correctly

Desktop (please complete the following information):

  • OS: Arch Linux x86_64
  • Version 6.9.6-arch1-1
  • Installation Method: AUR

Additional context

Jellyfin server exposed behind a Traefik on another computer

Logs are also showing the following lines

[debug] unknown @ 0 - Using web-client URL:  "file:////usr/share/jellyfinmediaplayer/web-client/desktop/index.html"
[debug] unknown @ 0 - "Using path for extension: /usr/share/jellyfinmediaplayer/web-client/extension/"

Trying to open the file shows this error in the console

find-webclient.js:81 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'settings')
    at find-webclient.js:81:40
    at find-webclient.js:87:3

reggermont avatar Jun 25 '24 22:06 reggermont