You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then when running some command the following error is output
requests.exceptions.InvalidHeader: Header part (62788) from {'expires_in': 62788} must be of type str or bytes, not <class 'int'>
Putting the number in quotes fixes this error; however, a different error is output after searching youtube for the tracks
YouTube tracks: 40/47
Traceback (most recent call last):
File "/home/lpl/.local/bin/spotify_to_ytmusic", line 8, in <module>
sys.exit(main())
File "/home/lpl/.local/lib/python3.10/site-packages/spotify_to_ytmusic/main.py", line 79, in main
args.func(args)
File "/home/lpl/.local/lib/python3.10/site-packages/spotify_to_ytmusic/controllers.py", line 54, in create
playlistId = ytmusic.create_playlist(
File "/home/lpl/.local/lib/python3.10/site-packages/spotify_to_ytmusic/ytmusic.py", line 19, in create_playlist
return self.api.create_playlist(name, info, privacy, video_ids=tracks)
File "/home/lpl/.local/lib/python3.10/site-packages/ytmusicapi/mixins/playlists.py", line 221, in create_playlist
response = self._send_request(endpoint, body)
File "/home/lpl/.local/lib/python3.10/site-packages/ytmusicapi/ytmusic.py", line 132, in _send_request
raise Exception(message + error)
Exception: Server returned HTTP 401: Unauthorized.
You must be signed in to perform this operation.
I imagine it has to do with the access token, but I am unsure how to proceed.
P.S. The URL for setting up the youtube API has a comma appended at the end, which messes up the link.
Edit: Img of URL
Also forgot to mention I am using python 3.10.10
The text was updated successfully, but these errors were encountered:
After setting up the youtube API my header looks like the following [token redacted]:
Then when running some command the following error is output
Putting the number in quotes fixes this error; however, a different error is output after searching youtube for the tracks
I imagine it has to do with the access token, but I am unsure how to proceed.
P.S. The URL for setting up the youtube API has a comma appended at the end, which messes up the link.
![urlcomma](https://user-images.githubusercontent.com/118209356/232905426-a7a06036-1dd6-4102-8519-ebe7ab982dfd.png)
Edit: Img of URL
Also forgot to mention I am using python 3.10.10
The text was updated successfully, but these errors were encountered: