Spotify Auth Callback Page returns 404 (GitHub Pages)
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
- Go to Settings -> Content Providers -> Spotify.
- Click on the button/link to authenticate/connect Spotify.
- Observe the browser redirecting to the GitHub Pages URL above.
- 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.
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
-
Update Spotify Developer Dashboard
-
Go to the Spotify Developer Dashboard and open your application settings.
-
Under Redirect URIs, update/add the following URL: https://lox-audioserver.github.io/core/spotify-callback/
-
Save the changes.
-
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