Miserlou / SoundScrape

SoundCloud (and Bandcamp and Mixcloud) downloader in Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSONDecodeError

kasey-mcfadden opened this issue · comments

¯\(ツ)

~ root# soundscrape iamtchami

Traceback (most recent call last):
  File "/usr/local/bin/soundscrape", line 11, in <module>
    sys.exit(main())
  File "/Library/Python/2.7/site-packages/soundscrape/soundscrape.py", line 119, in main
    process_soundcloud(vargs)
  File "/Library/Python/2.7/site-packages/soundscrape/soundscrape.py", line 270, in process_soundcloud
    data = get_soundcloud_api2_data(artist_id)
  File "/Library/Python/2.7/site-packages/soundscrape/soundscrape.py", line 495, in get_soundcloud_api2_data
    parsed = response.json()
  File "/var/root/Library/Python/2.7/lib/python/site-packages/requests/models.py", line 896, in json
    return complexjson.loads(self.text, **kwargs)
  File "/Library/Python/2.7/site-packages/simplejson/__init__.py", line 518, in loads
    return _default_decoder.decode(s)
  File "/Library/Python/2.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/Library/Python/2.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)