AuthenticationError(LoginFailed(BadCredentials))
This error has been persistent for the last while.
Double checked my login credentials, and all is correct. Reset the Bot token and made sure the user ID is correct. The logs show as follows:
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at src/lib/player.rs:233:14:
Error creating session: AuthenticationError(LoginFailed(BadCredentials))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Anyone who shed some light on this error? Is this an issue with Aoede?
same
same
same as #54
same It's hopeless ..
same...
same
getting the same error
same... ðŸ˜
same...
Same
It is likely that the issue arises from recent changes to Spotify's API endpoints, while the current version of the bot's Spotify package is outdated.
getting the same error
This is caused by Spotify deprecating username/password authentication in 2024. The "BadCredentials" error is now affecting all librespot-based applications regardless of valid credentials.
Root Cause: Spotify changed their authentication flow around July 2024, disabling the username/password method that librespot 0.4.2 relies on. This affects the entire ecosystem (spotifyd, ncspot, etc.).
Solution: I've created a fork that implements cached credentials authentication using librespot-auth as a workaround: https://github.com/zachlagden/aoede
Quick Fix:
- Download librespot-auth from my fork
- Generate credentials via Spotify Connect (no username/password needed)
- Use the cached credentials instead
This bypasses Spotify's deprecated authentication entirely. The fix is backward compatible and includes detailed migration instructions in the README.
Note: The original project would need to update to librespot 0.6.0+ and implement token-based authentication to resolve this properly, but my fork provides an immediate solution using the existing librespot 0.4.2.