core icon indicating copy to clipboard operation
core copied to clipboard

Spotify Auth Callback Page returns 404 (GitHub Pages)

Open bogi9999 opened this issue 4 months ago • 1 comments

Bug Description

When trying to authenticate Spotify as a Content Provider, the login flow attempts to redirect to the configured callback URL: https://lox-audioserver.github.io/lox-audioserver/spotify-callback/

However, this page currently returns a 404 - There isn't a GitHub Pages site here error from GitHub.

Steps to Reproduce

  1. Go to Settings -> Content Providers -> Spotify.
  2. Click on the button/link to authenticate/connect Spotify.
  3. Observe the browser redirecting to the GitHub Pages URL above.
  4. Result: 404 Page Not Found.

Environment

  • Installation: Native Installation (Node.js systemd / linux host)
  • Repository Version: Latest

Additional Info

It seems the GitHub Pages deployment for the callback handler is either missing, offline, or moved to a different path. Since this is a native installation, hardcoding local IP overrides in built JavaScript/Frontend files is not ideal, so a fix on the hosted callback page or an update to the default redirect mechanism would be appreciated.

bogi9999 avatar Jul 24 '26 07:07 bogi9999

Fix: Spotify Auth 404 Error (Updated Callback URL) Problem When attempting to authenticate Spotify as a Content Provider, the flow redirects to: https://lox-audioserver.github.io/lox-audioserver/spotify-callback/

This URL returns a 404 Page Not Found error from GitHub Pages. Following the repository migration under the lox-audioserver organization, the correct hosted callback path is now: https://lox-audioserver.github.io/core/spotify-callback/

Step-by-Step Solution

  1. Update Spotify Developer Dashboard

  2. Go to the Spotify Developer Dashboard and open your application settings.

  3. Under Redirect URIs, update/add the following URL: https://lox-audioserver.github.io/core/spotify-callback/

  4. Save the changes.

  5. Patch Application Files Choose the section below corresponding to your environment (Native or Docker):

Option A: Native Installation (Systemd / Linux Host) Run the following commands directly on your server terminal:

Update the hardcoded callback URL in the compiled JS file

sed -i "s#lox-audioserver.github.io/lox-audioserver/spotify-callback/#lox-audioserver.github.io/core/spotify-callback/#" /opt/lox-audioserver/dist/adapters/content/providers/spotify/serviceAuth.js

Verify that the URL updated correctly

grep -n 'SPOTIFY_PUBLIC_REDIRECT_URI' /opt/lox-audioserver/dist/adapters/content/providers/spotify/serviceAuth.js

Restart the service

systemctl restart lox-audioserver

Option B: Docker Installation Run the following commands on your Docker host (replace lox-audioserver with your container name if different):

Update the hardcoded callback URL inside the container

docker exec -it lox-audioserver sed -i "s#lox-audioserver.github.io/lox-audioserver/spotify-callback/#lox-audioserver.github.io/core/spotify-callback/#" /app/dist/adapters/content/providers/spotify/serviceAuth.js

Verify that the URL updated correctly

docker exec -it lox-audioserver grep -n 'SPOTIFY_PUBLIC_REDIRECT_URI' /app/dist/adapters/content/providers/spotify/serviceAuth.js

Restart the container

docker restart lox-audioserver

bogi9999 avatar Jul 24 '26 07:07 bogi9999