Skip to content

Authentication Error - BadCredentials in Librespot-Java #1057

Description

@CleoCordeiro

Authentication Error - BadCredentials in Librespot-Java

Problem Description

When trying to run Librespot-Java, I'm receiving an authentication error (BadCredentials) even though the credentials appear to be correct in the config.toml file.

Environment

  • Librespot-Java Version: 1.6.5
  • Operating System: Windows
  • Java Version: 21

Error Logs

PS E:\librespot-java-1\player\target\Nova pasta> java -jar .\librespot-player-1.6.5.jar 2025-01-27 12:28:49,907 DEBUG TimeProvider:90 - Loaded time offset from NTP: 1101ms 2025-01-27 12:28:50,519 INFO ApResolver:99 - Loaded aps into pool: {accesspoint=[ap-gue1.spotify.com:4070, ap-gue1.spotify.com:443, ap-gue1.spotify.com:80, ap-gae2.spotify.com:4070, ap-gew1.spotify.com:443, ap-gew4.spotify.com:80], dealer=[gue1-dealer.spotify.com:443, gae2-dealer.spotify.com:443, gew1-dealer.spotify.com:443, gew4-dealer.spotify.com:443], spclient=[gue1-spclient.spotify.com:443, gae2-spclient.spotify.com:443, gew1-spclient.spotify.com:443, gew4-spclient.spotify.com:443]} 2025-01-27 12:28:50,969 INFO Session:142 - Created new session! {deviceId: 2cb86a6b8573c4cd0653530eff0ae007d99d4ce2, ap: ap-gew4.spotify.com:80, proxy: false} 2025-01-27 12:28:51,848 INFO Session:336 - Connected successfully! 2025-01-27 12:28:52,381 ERROR Log4JUncaughtExceptionHandler:31 - [main] xyz.gianlu.librespot.core.Session$SpotifyAuthenticationException: BadCredentials at xyz.gianlu.librespot.core.Session.authenticatePartial(Session.java:458) ~[librespot-player-1.6.5.jar:1.6.5] at xyz.gianlu.librespot.core.Session.authenticate(Session.java:344) ~[librespot-player-1.6.5.jar:1.6.5] at xyz.gianlu.librespot.core.Session.access$600(Session.java:79) ~[librespot-player-1.6.5.jar:1.6.5] at xyz.gianlu.librespot.core.Session$Builder.create(Session.java:1080) ~[librespot-player-1.6.5.jar:1.6.5] at xyz.gianlu.librespot.player.Main.main(Main.java:80) ~[librespot-player-1.6.5.jar:1.6.5]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions