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

json.decoder.JSONDecodeError #25

Open
wjrforcyber opened this issue Nov 11, 2021 · 0 comments
Open

json.decoder.JSONDecodeError #25

wjrforcyber opened this issue Nov 11, 2021 · 0 comments

Comments

@wjrforcyber
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant