[GH-ISSUE #345] Does this still work? #273

Closed
opened 2026-02-27 22:08:55 +03:00 by kerem · 5 comments
Owner

Originally created by @dsm-72 on GitHub (Jan 29, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/345

I'm getting

Exception: 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.

from the copy-pasted request headers and I am indeed logged in.

Originally created by @dsm-72 on GitHub (Jan 29, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/345 I'm getting ``` Exception: 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. ``` from the copy-pasted request headers and I am indeed logged in.
kerem closed this issue 2026-02-27 22:08:55 +03:00
Author
Owner

@sigma67 commented on GitHub (Jan 30, 2023):

Yes, it works. Did you do as instructed?

https://ytmusicapi.readthedocs.io/en/stable/setup.html

<!-- gh-comment-id:1409348724 --> @sigma67 commented on GitHub (Jan 30, 2023): Yes, it works. Did you do as instructed? https://ytmusicapi.readthedocs.io/en/stable/setup.html
Author
Owner

@dsm-72 commented on GitHub (Jan 30, 2023):

@sigma67
Yes.

  1. go to music.youtube.com
  2. login in
  3. open inspector
  4. click "explore" to get a POST request with browse (as there is no browse on landing page)
domain | ".youtube.com"
Host music.youtube.com
Origin music.youtube.com
X-Goog-AuthUser 0

right click in request headers, click copy, copy all

paste into string and pass as headers_raw

Exception: The following entries are missing in your headers: x-goog-authuser, cookie. Please try a different request (such as /browse) and make sure you are logged in.

<!-- gh-comment-id:1409438381 --> @dsm-72 commented on GitHub (Jan 30, 2023): @sigma67 Yes. 1. go to music.youtube.com 2. login in 3. open inspector 4. click "explore" to get a POST request with `browse` (as there is no browse on landing page) 5. ``` domain | ".youtube.com" Host music.youtube.com Origin music.youtube.com X-Goog-AuthUser 0 ``` right click in request headers, click copy, copy all paste into string and pass as `headers_raw` > Exception: The following entries are missing in your headers: x-goog-authuser, cookie. Please try a different request (such as /browse) and make sure you are logged in.
Author
Owner

@sigma67 commented on GitHub (Jan 31, 2023):

Not sure what you pasted in 5), but there's no cookie value, which is needed to authenticate. Are you trying to authenticate? Else there's no need for the whole process.

If you want me to debug this for you, send your copied header text to ytmusicapi@gmail.com. Else there's not much I can do to help.

<!-- gh-comment-id:1409942672 --> @sigma67 commented on GitHub (Jan 31, 2023): Not sure what you pasted in 5), but there's no cookie value, which is needed to authenticate. Are you trying to authenticate? Else there's no need for the whole process. If you want me to debug this for you, send your copied header text to ytmusicapi@gmail.com. Else there's not much I can do to help.
Author
Owner

@spm2600 commented on GitHub (Feb 10, 2023):

the header is only good for a day or two then it changes on me. is this expected?

<!-- gh-comment-id:1426308579 --> @spm2600 commented on GitHub (Feb 10, 2023): the header is only good for a day or two then it changes on me. is this expected?
Author
Owner

@sigma67 commented on GitHub (Feb 14, 2023):

No, I've used the same headers for months, even years, in the past. It might invalidate if you're signing out in the browser you got the credentials from.

<!-- gh-comment-id:1430480876 --> @sigma67 commented on GitHub (Feb 14, 2023): No, I've used the same headers for months, even years, in the past. It might invalidate if you're signing out in the browser you got the credentials from.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#273
No description provided.