-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I'm getting YTM authentication error. I tried with both Chrome and Firefox.
I run the command :
ytmusic-sync.py -d C:\Users\my-music-folder
When prompted, I paste the result from the oauth.json (I replaced the actual tokens with dashes)
{ "scope": "https://www.googleapis.com/auth/youtube", "token_type": "Bearer", "access_token": "---", "refresh_token": "---", "expires_at": 1731237783, "expires_in": 70895 }
I then get this error:
Traceback (most recent call last): File "C:\Users\dries\Documents\Python projects\ytmusic-sync-master\ytmusic-sync.py", line 455, in <module> authenticate() ~~~~~~~~~~~~^^ File "C:\Users\dries\Documents\Python projects\ytmusic-sync-master\ytmusic-sync.py", line 212, in authenticate ytmusicapi.setup(filepath=str(authFile)) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dries\AppData\Local\Programs\Python\Python313\Lib\site-packages\ytmusicapi\setup.py", line 22, in setup return setup_browser(filepath, headers_raw) File "C:\Users\dries\AppData\Local\Programs\Python\Python313\Lib\site-packages\ytmusicapi\auth\browser.py", line 51, in setup_browser raise YTMusicUserError( ...<3 lines>... ) ytmusicapi.exceptions.YTMusicUserError: The following entries are missing in your headers: cookie, x-goog-authuser. Please try a different request (such as /browse) and make sure you are logged in.
I am logged in.
I added the cookie header manually and tried again.
However, I do nog see an x-goog-authuser in the request header.
I also get this warning:
Writing config file
Problem saving config file: [Errno 2] No such file or directory: 'C:\\Users\\dries\\AppData\\Local\\YT Music Sync\\config.ini'
Any suggestions, please.