Skip to content

Getting a weird JSON error #5

@julianividal

Description

@julianividal

Sorry to bother, but I'm attempting to use your tool to do some research but I can't get it to work. I have the newest version installed (with prosearch command) and yet I keep getting the following error:

% garc prosearch wwg1wga
Traceback (most recent call last):
File "/usr/local/bin/garc", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/garc/command.py", line 129, in main
for thing in things:
File "/usr/local/lib/python3.9/site-packages/garc/client.py", line 115, in pro_search
posts = resp.json()
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/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 can't quite figure out how to fix this? Any help would be deeply appreciated.

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