Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

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

@Knight1

Description

@Knight1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions