mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #760] YTMusic.create_playlist raises Exception #488
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#488
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 @PriyanshVerma on GitHub (Apr 6, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/760
system: MacOS ARM
browser: chrome
purpose: migrating my spotify playlist to ytmusic
I'm unable to debug why the call to
_send_requestin theYTMusic.create_playlistfunction fails with the exceptionytmusic.create_playlist('name', 'desc')While there are plenty check_auth() calls in the library's functions, I still have a feeling that this failing must have something to do with the oauth creds (happy to be proved wrong though!).
On my part, I followed all steps related to authentication using oauth, listed here:
ytmusicapi oauthThe oauth.json created is of the form:
Note that:
from ytmusicapi import OAuthCredentials(as given in the doc examples)to
ytmusicapi.auth.oauth import OAuthCredentials(based on file navigation, tbh i think documentation here is out of date)This is the full stack trace:
Code sample
where ytmusic is created like so:
I'm hesitant to use your other module spotify_to_ytmusic (which is what I'm building myself) because it seems to use the same underlying code, and since it's failing for me here, it might as well fail there!
Any inputs are greatly appreciated, and thanks for this library!
@sigma67 commented on GitHub (Apr 17, 2025):
I am unable to follow your issue - the create_playlist API is working fine as always.