mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #472] Not able to get playlist, when reading token from a file #155
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#155
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 @slyeet03 on GitHub (Apr 1, 2024).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/472
Describe the bug
I stored the access token in a text file after the authorization process, and when i am trying to use that access token to get user's playlist then it is returning nothing.
When I run it the first time it works flawlessly.
To Reproduce
I have this code for authorisation:
and this for getting playlist:
Expected behavior
To get a list of user's playlist.
Log/Output data
It returns nothing.
Additional context
I have checked the data stored, the token the client everything stores the correct value.
@slyeet03 commented on GitHub (Apr 6, 2024):
Found the solution, I just have to save the whole client itself instead of just the token.