Expecting value: line 1 column 1 (char 0)
0x1d00ffff opened this issue · comments
Running python3.6.exe ~\repos\SoundScrape\soundscrape\soundscrape.py twofeetmusic
on Windows 10 results in
Active code page: 65001
Expecting value: line 1 column 1 (char 0)
Apparently this call to get_soundcloud_api2_data(artist_id)
fails because the requests.get(v2_url)
call returns a 401 unauthorized error. Unfortunately I don't know enough to debug the issue further.
Facing same issue
It's happening with more and more artists for me. Some are fine, others... Forget about it.
This error can pop up for various reasons:
get_soundcloud_api_playlist_data
: This uses a hardcoded client token. If you use a different token, the issue is resolvedget_soundcloud_api2_data
: uses theAGGRESSIVE_CLIENT_ID
. This one is also shared by multiple different repo's, and could, just like the main token, hit the daily usage, or be revoked. This seems to be the case as well.
See #203
There is better http error handling in #241. Also, as the previous comment mentions, there are some issues with location or client ids.