Open nolanm1122 opened 4 years ago
Not that I have a solution for you, but I can say "It works just fine for me", so I suspect it's something you are doing wrong.
Just throwing my experience in as well, I get the same issue..
Same issue: login failed with username/password. I added a "vote": please add :+1: to issue top if username+password authentication fails for you too!
Seems to be about using a free account. After I updated to Premium, it started working.
This is based on librespot, and it says:
Note: librespot only works with Spotify Premium. This will remain the case. We will not support any features to make librespot compatible with free accounts, such as limited skips and adverts.
See also: https://github.com/librespot-org/librespot/issues/862
This issue can be closed.
Pro-tip: if the auth blob doesn't work for you, you can generate the auth blob in some other software (like the Rust version of librespot which seems very actively maintained) and steal its auth blob for use in librespot-golang!
If you use the Rust librespot, you can run:
$ target/release/librespot --name foobar --username <yourUsername>
it asks for your password, and then you can find the auth blob in cache/credentials.json
under key auth_data
. Make sure to base64-decode the value and then use it as blob.bin
content (don't include newline) as here:
I attempted to run the main.go with my personal username and password as flags, but program throws "authentication failed" error every time. I know these credentials are correct and that it's parsing the flags properly and passing them to librespot.Login function. I've also tried with another valid account and gotten same response. Must be an issue with how login is handled, etc.