Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

json.decoder.JSONDecodeError #25

@wjrforcyber

Description

@wjrforcyber

I have encounter with this:

Traceback (most recent call last):
  File "C:\Users\dell\Desktop\InstaTrack-master\InstaTracker.py", line 136, in <module>
    main()
  File "C:\Users\dell\Desktop\InstaTrack-master\InstaTracker.py", line 119, in main
    username = useridToUsername(args.id)
  File "C:\Users\dell\Desktop\InstaTrack-master\InstaTracker.py", line 63, in useridToUsername
    j = json.loads(r.text)
  File "C:\Python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Python39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Python39\lib\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)

when I try to convert id to username. (convert username to id is fine)
Is there anybody encounter with this?
Seems something wrong with json.loads

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