mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #268] getting json decoding errors? #205
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#205
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 @shijithpk on GitHub (Apr 8, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/268
Just wanted to let you know I'm getting some json decoding errors with ytmusicapi. Am I doing something wrong somewhere?
So this was the code I wrote:
This is the complete error message i got:
@sigma67 commented on GitHub (Apr 8, 2022):
It seems the server returned an error which was not JSON. I suspect it has something to do with your credentials. Does the search query work fine if you create the YTMusic instance without the headers parameter?
@shijithpk commented on GitHub (Apr 8, 2022):
Sorry, just saw this, thanks for responding. You're right! I ran the code below unauthenticated and I did get a json response!
Partial view of the json response
Do you have any idea on what could be wrong with my credentials? Have pasted mine below with some fields XXed out. I'm thinking I should just copy over the headers again and start over. Or is there anything else you think i should do?
@shijithpk commented on GitHub (Apr 9, 2022):
Oh, just to close the issue, i copied over the headers again from my Chrome Developer Tools, and authenticated requests are working again now. Thanks for your help! :)