mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #676] sp.search() is no longer working...returns JSON error #398
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#398
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 @srprinz on GitHub (Apr 19, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/676
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@Peter-Schorn commented on GitHub (Apr 20, 2021):
You need to post an example that reproduces this error.
@srprinz commented on GitHub (Apr 20, 2021):
artist = sp.search(q="Lady Gaga", type="artist")
print(artist)
@Peter-Schorn
@Peter-Schorn commented on GitHub (Apr 20, 2021):
Can't reproduce. Please provide a fully self-contained script that I and copy and run.
This indicates that when attempting to decode the string into a json object, a parsing error occurred at the very beginning of the string. This is likely because the string is completely empty.
@gustavokrieger commented on GitHub (Apr 21, 2021):
Maybe related to #570 (the error is raised in
oauth2.py).@Peter-Schorn commented on GitHub (Apr 21, 2021):
Can you reproduce this error reliably in your code?
JSONDecodeErrorhas adocparameter which contains the string that couldn't be decoded.@stephanebruckert commented on GitHub (Apr 21, 2021):
@srprinz we would need a minimal working example and a full stack trace to understand where the error exactly comes from. Also when creating this bug report you've skipped providing more information such as your environment:
please update your initial post if possible