Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spotifyd gives "Bad credentials" error when a password contains special characters #1269

Closed
1 of 6 tasks
coyotepunk05 opened this issue Mar 14, 2024 · 6 comments
Closed
1 of 6 tasks
Labels
bug A functionality or parts of a program that do not work as intended

Comments

@coyotepunk05
Copy link

Description

To Reproduce
Steps to reproduce the behavior:

  1. Run spotifyd --no-daemon --verbose -u "username" -p "password"
  2. Choose a password that includes a special character (such as *) and use spotify generated username
  3. Get error failed to connect to spotify: Login failed with reason: Bad credentials

Expected behavior

spotifyd successfully connects to Spotify with a password that contains special characters.

Logs

Click to show logs
<!-- PLEASE PASTE YOUR LOGS BELOW THIS LINE WHEN REPORTING BUGS. Make sure to run spotifyd using the `--verbose` flag -->
Loading config from "/home/cody/.config/spotifyd/spotifyd.conf"
CliConfig { config_path: Some("/home/cody/.config/spotifyd/spotifyd.conf"), no_daemon: true, verbose: true, pid: None, shared_config: SharedConfigValues { username: Some("taken out for privacy"), username_cmd: None, password: Some("taken out for privacy"), password_cmd: None, use_keyring: false, use_mpris: None, dbus_type: None, on_song_change_hook: None, cache_path: None, no-audio-cache: false, backend: None, volume_controller: None, device: None, control: None, mixer: None, device_name: None, bitrate: None, audio_format: None, initial_volume: None, volume_normalisation: false, normalisation_pregain: None, zeroconf_port: None, proxy: None, device_type: None, autoplay: false, max_cache_size: None } }
Found user shell: Some("/usr/bin/bash")
No proxy specified
registering event source with poller: token=Token(2147483649), interests=READABLE
Using software volume controller.
registering event source with poller: token=Token(0), interests=READABLE | WRITABLE
signal: Want
signal found waiting giver, notifying
poll_want: taker wants!
signal: Want
signal: Want
deregistering event source from poller
Ignoring blacklisted access point ap-gue1.spotify.com:443
Ignoring blacklisted access point ap-gew4.spotify.com:80
Connecting to AP "ap-guc3.spotify.com:443"
signal: Closed
registering event source with poller: token=Token(16777216), interests=READABLE | WRITABLE
deregistering event source from poller
failed to connect to spotify: Login failed with reason: Bad credentials

Compilation flags

  • dbus_mpris
  • dbus_keyring
  • alsa_backend
  • portaudio_backend
  • pulseaudio_backend
  • rodio_backend

Versions (please complete the following information):

  • OS: archlinux
  • Spotifyd: 0.3.5
  • cargo: 1.76.0
@coyotepunk05 coyotepunk05 added the bug A functionality or parts of a program that do not work as intended label Mar 14, 2024
@eladyn
Copy link
Member

eladyn commented Mar 15, 2024

Thank you for the report. Unfortunately, I cannot reproduce that issue. My password contains several special characters and even when including a * it still works. Have you verified that without a star it actually works?

@coyotepunk05
Copy link
Author

I can't seem to replicate the issue either today. I'm not sure what was going on, but with the same command it seems to launch correctly now. I'll update if I find out what the problem was but I'll just mark this as closed I guess.

@X0RW3LL
Copy link

X0RW3LL commented Apr 24, 2024

This issue has been persistent for a good few days now—spotifyd will no longer login successfully regardless of password length/strength. Prior to that, I received an email from Spotify that "suspicious activity" was detected on my account and that I had to reset the password. I believe that's when spotifyd practically died for me.

Edit: as it turns out, username now uses the email address, not the random account string.

@DavidHospital
Copy link

This issue has been persistent for a good few days now—spotifyd will no longer login successfully regardless of password length/strength. Prior to that, I received an email from Spotify that "suspicious activity" was detected on my account and that I had to reset the password. I believe that's when spotifyd practically died for me.

Edit: as it turns out, username now uses the email address, not the random account string.

I'm having a similar issue, I've tried to replace my username with my email, but still no luck. I am able to login just fine on my phone, etc. but just with spotifyd I am having this problem. Anything I should try?

@X0RW3LL
Copy link

X0RW3LL commented Jul 29, 2024

None that I know of; I only had to set username = "<email>" and that's that. You can try looking at what's happening with spotifyd --no-daemon --debug-credentials

@X0RW3LL
Copy link

X0RW3LL commented Aug 18, 2024

This issue has been persistent for a good few days now—spotifyd will no longer login successfully regardless of password length/strength. Prior to that, I received an email from Spotify that "suspicious activity" was detected on my account and that I had to reset the password. I believe that's when spotifyd practically died for me.
Edit: as it turns out, username now uses the email address, not the random account string.

I'm having a similar issue, I've tried to replace my username with my email, but still no luck. I am able to login just fine on my phone, etc. but just with spotifyd I am having this problem. Anything I should try?

Latest release apparently switched back to using your account identifier as opposed to Email, so now I just switch back and forth whenever creds misbehave 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A functionality or parts of a program that do not work as intended
Projects
None yet
Development

No branches or pull requests

4 participants