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

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #69

Open
Knight1 opened this issue Dec 18, 2022 · 0 comments
Open

Comments

@Knight1
Copy link

Knight1 commented Dec 18, 2022

Just in case someone has the same error.

My run was aborted due to Hibernation. After that i got the error

/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
  File "/home/[..]/.local/bin/hbd", line 8, in <module>
    sys.exit(cli())
  File "/home/[..]/.local/lib/python3.8/site-packages/humblebundle_downloader/cli.py", line 84, in cli
    DownloadLibrary(
  File "/home/[..]/.local/lib/python3.8/site-packages/humblebundle_downloader/download_library.py", line 62, in start
    self.cache_data = self._load_cache_data(self.cache_file)
  File "/home/[..]/.local/lib/python3.8/site-packages/humblebundle_downloader/download_library.py", line 381, in _load_cache_data
    cache_data = json.load(f)
  File "/usr/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/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)

I tries to read the .cache.json File to get the current State of the Library. In my case that file was empty.

Simply delete the empty .cache.json file inside your Library.

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