mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-26 15:56:00 +03:00
[GH-ISSUE #423] KeyError: 'watchEndpoint' When Retrieving Artist Discography #318
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#318
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 @skandallouz on GitHub (Aug 12, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/423
Describe the bug
While attempting to retrieve an artist's discography using the get_ytmusic_discography function, a KeyError related to the 'watchEndpoint' is encountered. This issue seems to occur specifically for artists with very large discographies, while it works normally for artists with small to medium-sized libraries. This prevents the successful retrieval of the artist information for those with extensive discographies.
To Reproduce
Steps to reproduce the behavior:
get_ytmusic_discographyfunction with validytmusic_artist_ids.KeyErrorrelated to'watchEndpoint'.Additional context
The error seems to be within the
ytmusicapilibrary when trying to navigate through the response data. Here's a sample code and the error traceback:(this is the code and error I'm getting)
The code is attempting to retrieve discography information for specific artist IDs, but it encounters an issue within the ytmusicapi library. The error seems related to the internal parsing of the response data.
@sigma67 commented on GitHub (Aug 12, 2023):
What is the value of
ytmusic_artist_ids?@skandallouz commented on GitHub (Aug 12, 2023):
Thank you for the quick response!
ytmusic_artist_ids = ['UC13ToEQgfmTe8_GW19LYtCg']
This ID corresponds to Udit Narayan, and I've encountered the KeyError related to the 'watchEndpoint' when working with his extensive discography as well as similar artists with large catalogs.
@sigma67 commented on GitHub (Aug 12, 2023):
I ran your code with the exact same setup and it worked fine. It must be an issue with your setup or a regional issue, which I can't help with.