Skip to content
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

Server returned HTTP 400: Bad request. Request contains an invalid argument. #118

Closed
nikinators opened this issue Nov 21, 2024 · 2 comments

Comments

@nikinators
Copy link

nikinators commented Nov 21, 2024

Hello!
I was trying to clone all my public playlist to spotify, but got this error when running "spotify_to_ytmusic all < spotifyuserid >."

Playlist 7: .
Getting Spotify tracks...
Spotify tracks: 100/136
Spotify tracks: 136/136
Searching YouTube...
Could not transfer playlist .. Server returned HTTP 400: Bad Request.
Request contains an invalid argument.

also cloning single playlists dont seem to work, running "spotify_to_ytmusic create < link >" returns :

Getting Spotify tracks...
Spotify tracks: 100/131
Spotify tracks: 131/131
Searching YouTube...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "S:\pythomn\Scripts\spotify_to_ytmusic.exe\__main__.py", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "S:\pythomn\Lib\site-packages\spotify_to_ytmusic\main.py", line 98, in main
    args.func(args)
    ~~~~~~~~~^^^^^^
  File "S:\pythomn\Lib\site-packages\spotify_to_ytmusic\controllers.py", line 77, in create
    _create_ytmusic(args, playlist, ytmusic)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "S:\pythomn\Lib\site-packages\spotify_to_ytmusic\controllers.py", line 63, in _create_ytmusic
    videoIds = ytmusic.search_songs(playlist["tracks"])
  File "S:\pythomn\Lib\site-packages\spotify_to_ytmusic\ytmusic.py", line 35, in search_songs
    result = self.api.search(query)
  File "S:\pythomn\Lib\site-packages\ytmusicapi\mixins\search.py", line 183, in search
    response = self._send_request(endpoint, body)
  File "S:\pythomn\Lib\site-packages\ytmusicapi\ytmusic.py", line 241, in _send_request
    raise YTMusicServerError(message + error)
ytmusicapi.exceptions.YTMusicServerError: Server returned HTTP 400: Bad Request.
Request contains an invalid argument.

Any fixes?

@simonsazian
Copy link

I'm having the same issue only for Spotify created playlists (Spotify Wrapped - Your Top Songs YYYY). Otherwise this worked for me just fine a few months ago.

@sigma67
Copy link
Owner

sigma67 commented Nov 21, 2024

see #117

@sigma67 sigma67 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants