Datalux / Osintgram

Osintgram is a OSINT tool on Instagram. It offers an interactive shell to perform analysis on Instagram account of any users by its nickname
GNU General Public License v3.0
9.52k stars 2.09k forks source link

Getting json.decoder error when I enter python3 main.py th3ro0ster --command info #465

Open Roosterkobain opened 2 years ago

Roosterkobain commented 2 years ago

└─$ python3 main.py th3ro0ster --command info Traceback (most recent call last): File "/home/kali/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) File "/home/kali/Osintgram/src/Osintgram.py", line 47, in init self.login(u, p) File "/home/kali/Osintgram/src/Osintgram.py", line 1110, in login cached_settings = json.load(file_data, object_hook=self.from_json) File "/usr/lib/python3.9/json/init.py", line 293, in load return loads(fp.read(), File "/usr/lib/python3.9/json/init.py", line 359, in loads return cls(kw).decode(s) File "/usr/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.9/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)**

sagarbadiyani commented 2 years ago

From the stack trace, it seems that this would happen if the program is unable to detect the config/settings.json file. Can you confirm if you saw any printed statements on the console like Unable to find file: config/settings.json?