mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #706] Exception on production enviroment #418
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#418
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 @alejandroGM0 on GitHub (Jul 13, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/706
Describe the bug
Python raise an error when using the package on production enviroment.
Your code
Here is when it raise the error
top_tracks = sp.playlist_tracks("someplaylist", limit=4)Expected behavior
Get songs information from playlists.
Output
Environment:
Additional context
When I use same code on localhost it works, perfectly.
Notes:
@alejandroGM0 commented on GitHub (Jul 13, 2021):
I tried with version 2.16.0 on my production enviroment and is working.
@Findus23 commented on GitHub (Jul 26, 2021):
see also https://github.com/plamere/spotipy/issues/493
At least for me the issue was that the server ran out of disk space and therefore the created
./.cachewas empty and therefore invalid JSON on the next run.@Peter-Schorn commented on GitHub (Jul 26, 2021):
This is definitely not a bug with spotipy. The error (on the very last line) indicates that the file which should contain the token info as JSON is empty. Delete that file and go through the authorization process again. You should never have an empty cache file.
@dieser-niko commented on GitHub (May 1, 2024):
@codertysmi is your issue solved or do you still need help?
@dieser-niko commented on GitHub (May 23, 2024):
Closing as there is no activity or reply from the author.