mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #476] Exception: The following entries are missing in your headers: x-goog-authuser #353
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#353
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ckujau on GitHub (Nov 22, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/476
Describe the bug
ytmusic-deleter(v1.5.6) fails because of a missing headerx-goog-authuser, see the full error below.To Reproduce
Steps to reproduce the behavior:
ytmusic-deleter delete-playlistsand paste the request header:Additional context
Indeed, the header
x-goog-authuseris nowhere to be found. I tried to adjust the missing headers routine to match on some existing header, but failed to do so. However, removing that wholemissing_headersfunction appears to do the trick and worked just fine:So, the diff would be:
Not creating a PR of course, for obvious reasons :)
@sigma67 commented on GitHub (Nov 22, 2023):
The project you're using is pinning a pretty old version of ytmusicapi (0.25). Can you try with latest and report back?
@ckujau commented on GitHub (Nov 22, 2023):
Oh, I didn't realize that! I used
pip install ytmusic-deleterand it's really pinning this old version ofytmusicapi, wow. And now I realize that I've opened this issue to the wrong project, sorry about that.FWIW, I've now installed both projects with the latest version
But the result is basically the same:
Removing that
missing_headersfunction again appears to "work" and abrowser.jsonis then created.Unfortunately, ytmusic-deleter is then failing again, but with a different error. But that's material for an issue in the
ytmusic-deleterproject :-)I was tempted to close this issue because I mixed up
ytmusicapiwithytmusic-deleterbut sinceytmusicapi browseris showing the same error now, I'll leave it open.@sigma67 commented on GitHub (Nov 22, 2023):
It's pretty strange that your paste does not contain any X-Headers. What method did you use to retrieve the headers?
On second look, I see the problem now. You're pasting a GET request, not a POST request.
Please read the instructions carefully: https://ytmusicapi.readthedocs.io/en/stable/setup/browser.html#copy-authentication-headers
@ckujau commented on GitHub (Nov 23, 2023):
I could not find a
POSTrequest anywhere so I used the/browserequest that happens to beGET. True, it's missing that particular header, but with the workaround above it works anyway, nox-goog-authuserrequired.@sigma67 commented on GitHub (Nov 23, 2023):
I wouldn't guarantee that everything works as expected. You can create a POST request simply by navigating to the library for example while keeping the network tab open