mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #50] Weird/intermittent Behaviour: JSONDecodeError: Expecting value: line 1 column 1 (char 0) #27
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#27
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 @nicolaka on GitHub (May 15, 2015).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/50
I had this working for 2+ months but today it was erroring intermittently????
Would appreciate your help!
@stephanebruckert commented on GitHub (Jan 17, 2020):
Issue being 5 year old and a lot has improved since, would need to know if this is still happening. Closing for now
@tahsinac commented on GitHub (May 17, 2020):
Have been using the library with no issues daily up until today. Getting this error now all of a sudden.
File "C:\projects\nplyrbot\nplyrbotpy.py", line 99, in <module> lyrics_current, current = nplyrbot() File "C:\projects\nplyrbot\nplyrbotpy.py", line 8, in nplyrbot token = util.prompt_for_user_token(username, scope, client_id=client_id, client_secret=client_secret, redirect_uri=redirect_uri) File "C:\ProgramData\Anaconda3\lib\site-packages\spotipy\util.py", line 88, in prompt_for_user_token token_info = sp_oauth.get_cached_token() File "C:\ProgramData\Anaconda3\lib\site-packages\spotipy\oauth2.py", line 253, in get_cached_token token_info = json.loads(token_info_string) File "C:\ProgramData\Anaconda3\lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)