Skip to content

zotify does not work anymore: librespot.mercury.MercuryClient.MercuryException: status: 403 #331

@dodo45674

Description

@dodo45674

Hi all,

I have used zotify several times successfully in the past.
Today I wanted to start downloading a playlist, but it always aborts with the following message.
Does anyone know what the reason is and how to fix it?

I would be really grateful if someone could help me.
Great thanks in advance!

Image
C:\Users\domin>zotify https://open.spotify.com/track/4b59u2E74KcDuyHCRBkf5v
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\domin\scoop\apps\python\current\Scripts\zotify.exe\__main__.py", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "C:\Users\domin\scoop\apps\python\current\Lib\site-packages\zotify\__main__.py", line 64, in main
    args.func(args)
    ~~~~~~~~~^^^^^^
  File "C:\Users\domin\scoop\apps\python\current\Lib\site-packages\zotify\app.py", line 21, in client
    Zotify(args)
    ~~~~~~^^^^^^
  File "C:\Users\domin\scoop\apps\python\current\Lib\site-packages\zotify\zotify.py", line 21, in __init__
    Zotify.login(args)
    ~~~~~~~~~~~~^^^^^^
  File "C:\Users\domin\scoop\apps\python\current\Lib\site-packages\zotify\zotify.py", line 32, in login
    cls.SESSION = Session.Builder(conf).stored_file(cred_location).create()
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\domin\scoop\apps\python\current\Lib\site-packages\librespot\core.py", line 1634, in create
    session.authenticate(self.login_credentials)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\domin\scoop\apps\python\current\Lib\site-packages\librespot\core.py", line 954, in authenticate
    self.dealer().connect()
    ~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\domin\scoop\apps\python\current\Lib\site-packages\librespot\core.py", line 450, in connect
    self.__session.tokens().get("playlist-read"),
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\domin\scoop\apps\python\current\Lib\site-packages\librespot\core.py", line 2238, in get
    return self.get_token(scope).access_token
           ~~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\domin\scoop\apps\python\current\Lib\site-packages\librespot\core.py", line 2258, in get_token
    response = self._session.mercury().send_sync_json(
        MercuryRequests.request_token(self._session.device_id(),
                                      ",".join(scopes)))
  File "C:\Users\domin\scoop\apps\python\current\Lib\site-packages\librespot\mercury.py", line 186, in send_sync_json
    raise MercuryClient.MercuryException(response)
librespot.mercury.MercuryClient.MercuryException: status: 403

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions