-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Describe the bug
token expires after a certain time.
HTTP Error for GET to https://api.spotify.com/v1/me/player/currently-playing with Params: {} returned 401 due to The access token expired
Traceback (most recent call last):
File "spotipy\client.py", line 271, in _internal_call
File "requests\models.py", line 1021, in raise_for_status
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/me/player/currently-playing
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 11, in <module>
File "spotipy\client.py", line 1232, in current_user_playing_track
File "spotipy\client.py", line 323, in _get
File "spotipy\client.py", line 293, in _internal_call
spotipy.exceptions.SpotifyException: http status: 401, code:-1 - https://api.spotify.com/v1/me/player/currently-playing:
The access token expired, reason: None
[24120] Failed to execute script 'main' due to unhandled exception!
To Reproduce
Steps to reproduce the behavior:
- run for a long time
Expected behavior
token needs to be renewed
Metadata
Metadata
Assignees
Labels
No labels