mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #855] UnicodeError when headers contain unicode #522
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#522
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 @mokurin000 on GitHub (Jan 24, 2026).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/855
Describe the bug
I just find the
__Secure-3PSID=in Cookies may contains Unicode, and since ytmusicapi does not process URLEncode for cookies, it may finally result:ytmusicapi version
1.11.3
To Reproduce
Steps to reproduce the behavior:
Since
__Secure-3PSID=cannot be randomly changed, during initialization of headers, I added such:Here I used the unicode escape since ytmusicapi also having problem in json decoding:
github.com/sigma67/ytmusicapi@21445ca6f3/ytmusicapi/auth/auth_parse.py (L25)Where the default encoding is based on user preferences on Windows, and it's commonly utf-8 on MacOS/Linux (also not a guarantee)
Additional context