[GH-ISSUE #172] [BUG] 404 when calling get_metadata_4_album() #30

Closed
opened 2026-02-27 08:11:30 +03:00 by kerem · 2 comments
Owner

Originally created by @sesseor on GitHub (Jan 2, 2023).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/172

github.com/kokarare1212/librespot-python@0db444f3bd/librespot/core.py (L120)

code return this :
<librespot.metadata.AlbumId object at 0x7f62693668c0> Traceback (most recent call last): File "/workspaces/spotify-downloader/instence.py", line 10, in <module> print(session.api().get_metadata_4_album(track_id)) File "/home/codespace/.python/current/lib/python3.10/site-packages/librespot/core.py", line 124, in get_metadata_4_album ApiClient.StatusCodeException.check_status(response) File "/home/codespace/.python/current/lib/python3.10/site-packages/librespot/core.py", line 206, in check_status raise ApiClient.StatusCodeException(response) librespot.core.ApiClient.StatusCodeException: 404

when calling get_metadata_4_album()

also my code :session.api().get_metadata_4_album(AlbumId.from_uri("spotify:album:3HHNR44YbP7XogMVwzbodx"))

Originally created by @sesseor on GitHub (Jan 2, 2023). Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/172 https://github.com/kokarare1212/librespot-python/blob/0db444f3bd97112024b8b680033667ba407ab2ae/librespot/core.py#L120 code return this : `<librespot.metadata.AlbumId object at 0x7f62693668c0> Traceback (most recent call last): File "/workspaces/spotify-downloader/instence.py", line 10, in <module> print(session.api().get_metadata_4_album(track_id)) File "/home/codespace/.python/current/lib/python3.10/site-packages/librespot/core.py", line 124, in get_metadata_4_album ApiClient.StatusCodeException.check_status(response) File "/home/codespace/.python/current/lib/python3.10/site-packages/librespot/core.py", line 206, in check_status raise ApiClient.StatusCodeException(response) librespot.core.ApiClient.StatusCodeException: 404` when calling get_metadata_4_album() also my code :`session.api().get_metadata_4_album(AlbumId.from_uri("spotify:album:3HHNR44YbP7XogMVwzbodx"))`
kerem 2026-02-27 08:11:30 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kokarare1212 commented on GitHub (Jan 3, 2023):

It was an implementation issue with AlbumId.

<!-- gh-comment-id:1369310083 --> @kokarare1212 commented on GitHub (Jan 3, 2023): It was an implementation issue with AlbumId.
Author
Owner

@sesseor commented on GitHub (Jan 3, 2023):

looks good to me !

<!-- gh-comment-id:1369343058 --> @sesseor commented on GitHub (Jan 3, 2023): looks good to me !
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/librespot-python-kokarare1212#30
No description provided.