Integration with snapserver and 'Bad credentials' issue. #1282
Replies: 2 comments 6 replies
-
The IPv6 error is coming from mDNS which is used for account "discovery". Since you are specifying your username and password on the command line, you are not using discovery and so maybe you can use As for the bad credentials, I can login OK as usual. Do you have a normal Spotify account or something else, e.g. a Facebook one? |
Beta Was this translation helpful? Give feedback.
-
Thanks, I will give that a try. The bad credentials issue seems to have resolved itself now, so maybe it was a 'local' issue with something environmental. Either way, after a couple of restarts of snapserver it still seems to be working! |
Beta Was this translation helpful? Give feedback.
-
I am running snapcast, with snapserver on a Raspberry Pi 4B, running 64 bit Pi release of bookworm.
I have built librespot, and have the relevant source = line in the snapserver.conf file.
However, this isn't working, as I am consistently getting an error:
could not initialize spirc: Permission denied { Login failed with reason: Bad credentials }
To eliminate the problem, I then ran librespot outside of SnapCast,
pi@pi64:~/librespot/target/debug $ ./librespot -B pipe -i "0.0.0.0" -p MYPASSWORD -u MYUSERNAME
[2024-05-10T14:38:53Z INFO librespot] librespot 0.5.0-dev 9959a6c (Built on 2024-05-10, Build ID: kakNgLT4, Profile: debug)
[2024-05-10T14:38:53Z WARN libmdns] Failed to register IPv6 receiver: Os { code: 97, kind: Uncategorized, message: "Address family not supported by protocol" }
[2024-05-10T14:38:53Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
[2024-05-10T14:38:53Z INFO librespot_playback::convert] Converting with ditherer: tpdf
[2024-05-10T14:38:53Z INFO librespot_playback::audio_backend::pipe] Using StdoutSink (pipe) with format: S16
[2024-05-10T14:38:54Z INFO librespot_core::session] Connecting to AP "ap-gew1.spotify.com:4070"
[2024-05-10T14:38:54Z ERROR librespot] could not initialize spirc: Permission denied { Login failed with reason: Bad credentials }
The warning is because the machine has ipv6 disabled, so is not unexpected. (Is there a build option I can set to get librespot to NOT use ipv6?)
Am I missing some 'magic' parameter to get this to work? I have tried a build from the 'master' and 'dev' branches, but both seem to be doing the same?
I'm pretty sure it's nothing to do with snapcast, since I cannot get it to work standalone, so it must be me not calling librespot correctly, or Spotify has changed something.
Beta Was this translation helpful? Give feedback.
All reactions