-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception: Server returned HTTP 400: Bad Request. #78
Comments
It's probably a problem with the way you set up your credentials. Which setup method did you use? Can you check your settings.ini file? |
Use the method as instructed in the Github |
If you did everything correctly it should probably work. To troubleshoot you need to manually inspect the settings.ini file, which is created automatically. It should be in |
I am having the same issue as djlivooo Anyway I tried to find the settings.ini file you mentioned, I could find the example ini file but not the ehm "real" one?
|
@Lod3 the settings file should be in %APPDATA%/spotify_to_ytmusic |
I'm consistently seeing this with trying to import https://open.spotify.com/playlist/3YgiYNSYXeKWPkcVKZY4xc - it is a rather large playlist with thousands of entries, so that seems to match with the original report. I've successfully imported a far smaller one, so I believe my config should be right. I've not yet had the time to investigate further than this, but I thought I'd provide what is (to me) a consistent reproduction of these symptoms. |
Maybe the issue is that too many videos are being passed to YouTube's playlist limit is at 5000: https://webapps.stackexchange.com/questions/77790/what-is-the-maximum-youtube-playlist-length so it is in fact impossible to transfer this playlist. Could implement an exception for this case |
Ah, I was wondering if there was some kind of API limit, I hadn't considered that there would just be a playlist size limit, thanks |
Hello, people. This happens to me when I'm moving a playlist from Spotify to Youtube Music. Is there any solution?
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\varga\AppData\Local\Programs\Python\Python312\Scripts\spotify_to_ytmusic.exe_main.py", line 7, in
File "C:\Users\varga\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\main.py", line 86, in main
args.func(args)
File "C:\Users\varga\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\controllers.py", line 71, in create
_create_ytmusic(args, playlist, ytmusic)
File "C:\Users\varga\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\controllers.py", line 62, in _create_ytmusic
playlistId = ytmusic.create_playlist(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\varga\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\ytmusic.py", line 21, in create_playlist
return self.api.create_playlist(name, info, privacy, video_ids=tracks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\varga\AppData\Local\Programs\Python\Python312\Lib\site-packages\ytmusicapi\mixins\playlists.py", line 226, in create_playlist
response = self._send_request(endpoint, body)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\varga\AppData\Local\Programs\Python\Python312\Lib\site-packages\ytmusicapi\ytmusic.py", line 156, in _send_request
raise Exception(message + error)
Exception: Server returned HTTP 400: Bad Request.
Request contains an invalid argument.
The text was updated successfully, but these errors were encountered: