mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-26 07:46:00 +03:00
[GH-ISSUE #321] Headers failing check_header_validity in utils.py #248
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#248
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 @notaSWE on GitHub (Nov 30, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/321
Hello, when I follow the instructions in Firefox to find a POST yielding 200 OK response with the headers, I then right click and copy all and save to headers.json. When I try to actually use ytmusicapi, the headers appear to fail the check_header_validity in utils.py. Note, this is the beginning of my headers.json file - is it correct? Note, it works fine when I pipe to jq.
Error message is:
must be of type str or bytes, not <class 'dict'>
@notaSWE commented on GitHub (Nov 30, 2022):
For other people who have this issue, just read through the Setup documentation and you'll get it working!
https://ytmusicapi.readthedocs.io/en/latest/setup.html