[GH-ISSUE #74] [Bug Report] Session Access Token is None #62

Closed
opened 2026-02-27 04:57:19 +03:00 by kerem · 2 comments
Owner

Originally created by @RGPZ on GitHub (Sep 13, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/74

Originally assigned to: @Googolplexed0 on GitHub.

Using Zotify v0.9.25 and I constantly get the error ` [●∙∙] Fetching track information...

ERROR: SKIPPING SONG - FAILED TO QUERY METADATA

Track_ID: 6a7PmyP5DI0pcxzggmayAW

############################################################################################################################################################
{ 'playlist': 'Love Is The Answer',
'playlist_id': '3Y6m8sbJ5zaVVAWeSpYGnQ',
'playlist_num': '001',
'playlist_track': 'Love Is The Answer',
'playlist_track_id': '6a7PmyP5DI0pcxzggmayAW'}
############################################################################################################################################################

Traceback (most recent call last):
File "C:\Users\Liamm\pipx\venvs\zotify\Lib\site-packages\zotify\track.py", line 207, in download_track
track_metadata = get_track_metadata(track_id)
File "C:\Users\Liamm\pipx\venvs\zotify\Lib\site-packages\zotify\track.py", line 53, in get_track_metadata
(raw, info) = Zotify.invoke_url(f'{TRACK_URL}?ids={track_id}&market=from_token')
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Liamm\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 648, in invoke_url
headers = cls.get_auth_header()
File "C:\Users\Liamm\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 639, in get_auth_header
'Authorization': f'Bearer {cls.__get_auth_token()}',
~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\Liamm\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 634, in __get_auth_token
).access_token
^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'access_token'` when I try to download large playlists after a period of time. I've read that there is a fix by updating to a later version of Zotify but I believe that 0.9.25 is the latest release that there is and I'm still having this issue, I'm also using librespot-0.0.9. I've read the other thread about this problem and yet nothing in there has helped me out so far. Is there anyway that this can be fixed based on the code in the file?

Originally created by @RGPZ on GitHub (Sep 13, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/74 Originally assigned to: @Googolplexed0 on GitHub. Using Zotify v0.9.25 and I constantly get the error ` [●∙∙] Fetching track information... ### ERROR: SKIPPING SONG - FAILED TO QUERY METADATA ### ### Track_ID: 6a7PmyP5DI0pcxzggmayAW ### ############################################################################################################################################################ { 'playlist': 'Love Is The Answer', 'playlist_id': '3Y6m8sbJ5zaVVAWeSpYGnQ', 'playlist_num': '001', 'playlist_track': 'Love Is The Answer', 'playlist_track_id': '6a7PmyP5DI0pcxzggmayAW'} ############################################################################################################################################################ Traceback (most recent call last): File "C:\Users\Liamm\pipx\venvs\zotify\Lib\site-packages\zotify\track.py", line 207, in download_track track_metadata = get_track_metadata(track_id) File "C:\Users\Liamm\pipx\venvs\zotify\Lib\site-packages\zotify\track.py", line 53, in get_track_metadata (raw, info) = Zotify.invoke_url(f'{TRACK_URL}?ids={track_id}&market=from_token') ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Liamm\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 648, in invoke_url headers = cls.get_auth_header() File "C:\Users\Liamm\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 639, in get_auth_header 'Authorization': f'Bearer {cls.__get_auth_token()}', ~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\Liamm\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 634, in __get_auth_token ).access_token ^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'access_token'` when I try to download large playlists after a period of time. I've read that there is a fix by updating to a later version of Zotify but I believe that 0.9.25 is the latest release that there is and I'm still having this issue, I'm also using librespot-0.0.9. I've read the other thread about this problem and yet nothing in there has helped me out so far. Is there anyway that this can be fixed based on the code in the file?
kerem 2026-02-27 04:57:19 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Googolplexed0 commented on GitHub (Sep 14, 2025):

I've read that there is a fix by updating to a later version of Zotify but I believe that 0.9.25 is the latest release that there is and I'm still having this issue,

v0.9.27 is the most recent version of Zotify.

I'm also using librespot-0.0.9

Librespot has had many significant/breaking changes all under the version number 0.0.9. I would suggest force-reinstalling Zotify via pipx and ensure it is building with the most recent version of librespot from Github rather than librespot-0.0.9 from PyPI.

Worst case, try out the efficient-api branch. Switching branches may also force a refresh of librespot to the most up-to-date version.

<!-- gh-comment-id:3289190749 --> @Googolplexed0 commented on GitHub (Sep 14, 2025): > I've read that there is a fix by updating to a later version of Zotify but I believe that 0.9.25 is the latest release that there is and I'm still having this issue, v0.9.27 is the most recent version of Zotify. > I'm also using librespot-0.0.9 Librespot has had many significant/breaking changes all under the version number 0.0.9. I would suggest force-reinstalling Zotify via pipx and ensure it is building with the most recent version of librespot from Github rather than librespot-0.0.9 from PyPI. Worst case, try out the [efficient-api](https://github.com/Googolplexed0/zotify/tree/efficient-api) branch. Switching branches may also force a refresh of librespot to the most up-to-date version.
Author
Owner

@RGPZ commented on GitHub (Sep 21, 2025):

Thank you, updating to v0.9.27 has fixed the problem from the looks of things, I haven't had any errors since!

<!-- gh-comment-id:3315384700 --> @RGPZ commented on GitHub (Sep 21, 2025): Thank you, updating to v0.9.27 has fixed the problem from the looks of things, I haven't had any errors since!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zotify#62
No description provided.