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

simplejson.errors.JSONDecodeError #31

Open
Seminko opened this issue Dec 17, 2021 · 6 comments
Open

simplejson.errors.JSONDecodeError #31

Seminko opened this issue Dec 17, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@Seminko
Copy link

Seminko commented Dec 17, 2021

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\ProgramData\Anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "G:\Python\clairvoyance-main\clairvoyance\__main__.py", line 96, in <module>
    schema = oracle.clairvoyance(
  File "G:\Python\clairvoyance-main\clairvoyance\oracle.py", line 447, in clairvoyance
    valid_mutation_fields = probe_valid_fields(wordlist, config, input_document)
  File "G:\Python\clairvoyance-main\clairvoyance\oracle.py", line 80, in probe_valid_fields
    errors = response.json()["errors"]
  File "C:\Users\Folder\AppData\Roaming\Python\Python38\site-packages\requests\models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\simplejson\__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "C:\ProgramData\Anaconda3\lib\site-packages\simplejson\decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "C:\ProgramData\Anaconda3\lib\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)
@ivonutar
Copy link

For me this was caused by not setting all necessary Headers, such as Cookie etc.

@Seminko
Copy link
Author

Seminko commented Jan 28, 2022

@ivonutar For me it ran for half an hour without an issue. Only then this exception was thrown.

@cazzz
Copy link

cazzz commented Aug 9, 2022

Having the same issue as @Seminko. Running with the authorization header with no issues at first.

@d-kar
Copy link

d-kar commented Sep 14, 2022

Having the same issue as @Seminko. Running with the authorization header with no issues at first.

server starts blocking your requests after some probing. This is especially true with multipple concurrent requests (it throws 403 error which is not handled by clairvoyance)

@Seminko
Copy link
Author

Seminko commented Sep 14, 2022

server starts blocking your requests after some probing. This is especially true with multipple concurrent requests (it throws 403 error which is not handled by clairvoyance)

A separate exception would be nice to actually know what caused the JSONDecodeError.

@Privat33r-dev
Copy link
Collaborator

I think that another issue covers this case.

@Seminko, are you ok with closing this issue with #107 superseding it?

@Privat33r-dev Privat33r-dev added the bug Something isn't working label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants