Skip to content

[Bug Report]: JSONDecodeError in __main__.py #318

@kaifcodec

Description

@kaifcodec

Title: json.decoder.JSONDecodeError during JSON output generation

Environment:

  • user-scanner Version: 1.3.5.3
  • OS: Kali Linux
  • Python Version: 3.13
  • Command: user-scanner -e dev_tester_99@gmail.com --no-nsfw -f json -o out.json --allow-loud --only-found

Steps to Reproduce:

  1. Run a scan with the -f json flag using an email that returns multiple results.
  2. The scanner completes the "Social Sites" checks.
  3. The script crashes before finalizing the output file.

Terminal Traceback:

Traceback (most recent call last):
  File "/usr/local/bin/user-scanner", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/kali/user_scanner/main.py", line 397, in main
    new_items = json.loads(content)
  File "/usr/lib/python3.13/json/__init__.py", line 352, in loads
    return _default_decoder.decode(s)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^
  File "/usr/lib/python3.13/json/decoder.py", line 345, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/json/decoder.py", line 361, in raw_decode
    obj, end = self.scan_once(s, idx)
               ~~~~~~~~~~~~~~^^^^^^^^
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 396 column 32 (char 8858)

Expected Behavior:
The script should successfully parse the gathered data into a valid JSON object and write it to the specified output file.

Actual Behavior:
The script fails to parse the content string, indicating malformed JSON structure (missing comma delimiter) at the point of merging results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions