InstaTrack
InstaTrack copied to clipboard
json.decoder.JSONDecodeError
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