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

Spotify Authentication error #25

Open
MrCaringi opened this issue Nov 2, 2024 · 0 comments
Open

Spotify Authentication error #25

MrCaringi opened this issue Nov 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MrCaringi
Copy link

MrCaringi commented Nov 2, 2024

Environment (please complete the following information):

  • OS: Ubuntu Server/Docker
  • Launch command docker-compose -f /home/jfc/scripts/dc-zspotify/docker-compose.yml run --rm zspotifyK -lsdall

Docker Compose used

version: '3'
services:
# kaitallaoua
  zspotifyK:
    # https://github.com/kaitallaoua/zyspotify
    image: kaitallaoua/zyspotify
    container_name: zspotify
    restart: unless-stopped
    network_mode: bridge
    #   usuario no parece ir bien
    #user: "1001:1001"
    environment:
      - 'UID=1001'
      - 'GID=1001'
      - 'TZ=America/Monterrey'
      - 'ANTI_BAN_WAIT_TIME=60'
      - 'ANTI_BAN_WAIT_TIME_ALBUMS=30'
    volumes:
      - ./K:/root/.zspotify
      - '/mnt/music/music_library:/root/Music/ZSpotify Music'

To Reproduce

docker-compose -f /home/jfc/scripts/dc-zspotify/docker-compose.yml run --rm zspotifyK -lsdall

Stack Trace

INFO: version: 3.0.3
INFO: Login to Spotify
Username: MyUser
Password: 
Traceback (most recent call last):
  File "/usr/local/bin/zyspotify", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zyspotify/__main__.py", line 710, in main
    zys.start()
  File "/usr/local/lib/python3.12/site-packages/zyspotify/__main__.py", line 616, in start
    while not self.login():
              ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zyspotify/__main__.py", line 150, in login
    if self.respot.is_authenticated(username, password):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zyspotify/respot.py", line 52, in is_authenticated
    if self.auth.login(username, password):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zyspotify/respot.py", line 110, in login
    return self._authenticate_with_user_pass(username, password)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zyspotify/respot.py", line 133, in _authenticate_with_user_pass
    self.session = Session.Builder().user_pass(username, password).create()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/librespot/core.py", line 1634, in create
    session.authenticate(self.login_credentials)
  File "/usr/local/lib/python3.12/site-packages/librespot/core.py", line 939, in authenticate
    self.__authenticate_partial(credential, False)
  File "/usr/local/lib/python3.12/site-packages/librespot/core.py", line 1350, in __authenticate_partial
    raise Session.SpotifyAuthenticationException(ap_login_failed)
librespot.core.Session.SpotifyAuthenticationException: BadCredentials
@MrCaringi MrCaringi added the bug Something isn't working label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant