mirror of
https://github.com/Googolplexed0/zotify.git
synced 2026-04-25 06:15:55 +03:00
[GH-ISSUE #74] [Bug Report] Session Access Token is None #62
Labels
No labels
bug
considering
discussion
documentation
enhancement
enhancement
good first issue
help wanted
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zotify#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@Googolplexed0 commented on GitHub (Sep 14, 2025):
v0.9.27 is the most recent version of Zotify.
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.
@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!