Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise JSONDecodeError("Expecting value", s, err.value) from None #15

Open
laTruffe79 opened this issue Sep 1, 2021 · 0 comments
Open

Comments

@laTruffe79
Copy link

Hello,
I got this error after few downloads like this :

python download_collection_album.py 445264 small

Traceback (most recent call last):
  File "download_collection_album.py", line 35, in <module>
    collection_main()
  File "download_collection_album.py", line 22, in collection_main
    get_collections(args.collection_id, args.size, args.curated)
  File "download_collection_album.py", line 12, in get_collections
    collection, s = get_response(COLLECTION_URL + cid, {'client_id': ACCESS_KEY})
  File "D:\Dev\Python\unsplash-album-downloader\download_user_album.py", line 36, in get_response
    data = json.loads(r.content.decode('utf-8'))
  File "C:\Users\ysn\AppData\Local\Programs\Python\Python38-32\lib\json\__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "C:\Users\ysn\AppData\Local\Programs\Python\Python38-32\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\ysn\AppData\Local\Programs\Python\Python38-32\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

What's the problem please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant