mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #538] TypeError: RefreshingToken.__init__() got an unexpected keyword argument 'filepath' #387
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#387
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 @linsomniac on GitHub (Feb 10, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/538
Describe the bug
I haven't used my session in days or more, and I believe it's going to refresh the token, but (with version 1.5.2 and also experienced on 1.4.2), I'm getting the following traceback:
The RefreshingToken() is getting created with a
self._input_dictthat contains a "filepath": "oauth.json" element.If I remove the filepath from the dict, it seems to succeed, but I don't know the code well enough to know if that's a bit naive.
Adding above the "RefreshingToken" above (ytmusic.py line 139) which reads:
Seemed to work for me.
To Reproduce
Steps to reproduce the behavior:
YTMusic("oauth.json")@sigma67 commented on GitHub (Feb 10, 2024):
_input_dictis what you're passing in viaoauth.jsonFix your
oauth.jsonto not containfilepathand you're good to go@linsomniac commented on GitHub (Feb 10, 2024):
There is no "filepath" in my "oauth.json", and if there were it is not something that I would have put in there, I created it with "ytmusicapi oauth".
@sigma67 commented on GitHub (Feb 10, 2024):
#536