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

librespot.core.Session.SpotifyAuthenticationException: BadCredentials but the credentials are correct #235

Open
joaogracodev opened this issue Jan 1, 2025 · 6 comments

Comments

@joaogracodev
Copy link

i have this error when i'll download a music:
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "c:\users\joao.local\bin\zotify.exe_main
.py", line 7, in
sys.exit(main())
~~~~^^
File "C:\Users\joao\pipx\venvs\zotify\Lib\site-packages\zotify_main
.py", line 64, in main
args.func(args)
~~~~~~~~~^^^^^^
File "C:\Users\joao\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 21, in client
Zotify(args)
~~~~~~^^^^^^
File "C:\Users\joao\pipx\venvs\zotify\Lib\site-packages\zotify\zotify.py", line 21, in init
Zotify.login(args)
~~~~~~~~~~~~^^^^^^
File "C:\Users\joao\pipx\venvs\zotify\Lib\site-packages\zotify\zotify.py", line 46, in login
cls.SESSION = Session.Builder(conf).user_pass(user_name, password).create()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\joao\pipx\venvs\zotify\Lib\site-packages\librespot\core.py", line 1634, in create
session.authenticate(self.login_credentials)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\joao\pipx\venvs\zotify\Lib\site-packages\librespot\core.py", line 939, in authenticate
self.__authenticate_partial(credential, False)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "C:\Users\joao\pipx\venvs\zotify\Lib\site-packages\librespot\core.py", line 1350, in __authenticate_partial
raise Session.SpotifyAuthenticationException(ap_login_failed)
librespot.core.Session.SpotifyAuthenticationException: BadCredentials

@LucaPalmer
Copy link

I'm also having the same issue

@shiroopi
Copy link

shiroopi commented Jan 4, 2025

+1

1 similar comment
@uzapy
Copy link

uzapy commented Jan 5, 2025

+1

@majuss
Copy link

majuss commented Jan 7, 2025

Same

@mtyszkiewicz
Copy link

@dhulme
Copy link

dhulme commented Jan 17, 2025

This worked for me #232 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants