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.2k stars 1.98k forks source link

Error parsing error response: Expecting value: line 1 column 1 (char 0) what's the problem? #713

Open 0khasawneh opened 1 year ago

0khasawneh commented 1 year ago

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/kali/inst/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/inst/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/kali/inst/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/inst/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/errors.py", line 135, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

louisdanek commented 1 year ago

same problem :'(

CyberStudentUAE commented 1 year ago

Same problem also

GS-1001 commented 1 year ago

the same problem

ansuh0260 commented 1 year ago

Same problem

8wolfgang8 commented 1 year ago

did anyone get this after clearing there settings.json?

dinse56 commented 1 year ago

yeah i did clear but still i getting this error, can anyone please help me clear the error

ansuh0260 commented 1 year ago

yeah i did clear but still i getting this error, can anyone please help me clear the error

We are also unable fix the error

dinse56 commented 1 year ago

when you login in gave your id and pass than try the same id as target. then it will work. so we need the password of the target to use this tool. if you found any other way to solve this let me know please.

king3486 commented 1 year ago

when you login in gave your id and pass than try the same id as target. then it will work. so we need the password of the target to use this tool. if you found any other way to solve this let me know please.

yse me too

king3486 commented 1 year ago

what is the problem

king3486 commented 1 year ago

Whay

cyberducky0o0 commented 1 year ago

I found the solution,

First, the error: the http response is returning an html output. We are expecting a json format, thus the parsing error in the first block.

Why is this returning an http response? Looking into the instagram-private-api library, we see that there is an authentication issue.

Solution Flow:

  1. Use a username and password and then use that username as the victim, (this worked)
  2. Since the above worked, the program itself is not the issue.
  3. The issue lies in the authentication of your account with instagram
  4. One thought, since I just made this (BOT) account, it could be that there is an account life time that needs to true in order for the apis to work.
  5. I used an older bot account and was able to get it working!
  6. Use an older IG account or get a developer account.

FOLLOW ME ON YT!

dinse56 commented 1 year ago

If we know the password of the target than why we need to use this one.

apambalik1337 commented 1 year ago

thanks it worked!

Monu9012 commented 1 year ago

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/monu9012/Desktop/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/monu9012/Desktop/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/monu9012/Desktop/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/monu9012/Desktop/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/errors.py", line 135, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

V3ct0rFl2m3 commented 1 year ago

when you login in gave your id and pass than try the same id as target. then it will work. so we need the password of the target to use this tool. if you found any other way to solve this let me know please.

yes to osint a acc you need to have hes password

jugraj8910 commented 12 months ago

I found the solution,

First, the error: the http response is returning an html output. We are expecting a json format, thus the parsing error in the first block.

Why is this returning an http response? Looking into the instagram-private-api library, we see that there is an authentication issue.

Solution Flow:

1. Use a username and password and then use that username as the victim, (this worked)

2. Since the above worked, the program itself is not the issue.

3. The issue lies in the authentication of your account with instagram

4. One thought, since I just made this (BOT) account, it could be that there is an account life time that needs to true in order for the apis to work.

5. I used an older bot account and was able to get it working!

6. Use an older IG account or get a developer account.

FOLLOW ME ON YT! does it really work

fluffyguy23 commented 10 months ago

when you login in gave your id and pass than try the same id as target. then it will work. so we need the password of the target to use this tool. if you found any other way to solve this let me know please.

same here plz help

fluffyguy23 commented 10 months ago

i use my offical account but it didnt work. it only work on same accont as in settings but when i try to implement it in other account it gives me this error

Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/fluffy/Osintgram/main.py", line 186, in _cmd() File "/home/fluffy/Osintgram/src/Osintgram.py", line 110, in change_target self.setTarget(line) File "/home/fluffy/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/fluffy/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/errors.py", line 135, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

Kimopro1010 commented 9 months ago

I found the solution,

First, the error: the http response is returning an html output. We are expecting a json format, thus the parsing error in the first block.

Why is this returning an http response? Looking into the instagram-private-api library, we see that there is an authentication issue.

Solution Flow:

  1. Use a username and password and then use that username as the victim, (this worked)
  2. Since the above worked, the program itself is not the issue.
  3. The issue lies in the authentication of your account with instagram
  4. One thought, since I just made this (BOT) account, it could be that there is an account life time that needs to true in order for the apis to work.
  5. I used an older bot account and was able to get it working!
  6. Use an older IG account or get a developer account.

FOLLOW ME ON YT!

it didn't work with me

Kimopro1010 commented 9 months ago

i use my offical account but it didnt work. it only work on same accont as in settings but when i try to implement it in other account it gives me this error

Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/fluffy/Osintgram/main.py", line 186, in _cmd() File "/home/fluffy/Osintgram/src/Osintgram.py", line 110, in change_target self.setTarget(line) File "/home/fluffy/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/fluffy/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/errors.py", line 135, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

same

dsgrtg35 commented 8 months ago

my brothers the problem of osintgram i can resolve the problem

sujaymerawade commented 8 months ago

my brothers the problem of osintgram i can resolve the problem

How ?

DARK772246 commented 8 months ago

CAN ANYONE SOLVE THIS PLEASE

robertopv commented 7 months ago

A porcaria do instagram mudou a API.... O retorno da chamada de API específico que, o Instagram o descontinuou, fazendo com que o programa não funcionasse totalmente.

O que você realmente precisa fazer é:

1 - vai até o diretorio: a src 2 - procure o arquivo Osintgram.py 3 - na linha onde está escrito self.following = self.check_following() na função setTarget(self, target) 4 - comente essa linha, assim: #self.following = self.check_following(). 5 - Prontinho sejam felizes.... Isso deve funcionar.

AndyMalgonne commented 7 months ago

A porcaria do instagram mudou a API.... O retorno da chamada de API específico que, o Instagram o descontinuou, fazendo com que o programa não funcionasse totalmente.

O que você realmente precisa fazer é:

1 - vai até o diretorio: a src 2 - procure o arquivo Osintgram.py 3 - na linha onde está escrito self.following = self.check_following() na função setTarget(self, target) 4 - comente essa linha, assim: #self.following = self.check_following(). 5 - Prontinho sejam felizes.... Isso deve funcionar.

Thanks man it worked

losmigabi commented 6 months ago

Logged in, but still dodnt work ...

_ \ ___|| _/ | ____ ____
/ | \ / _/ |/ \ _\/ _ _ \ / \
/ | \
| | | \ | / // > | \// | Y Y \
____
/__ >|_| /_| \ /|| (__ /|_| /
\/ \/ \/ /___
/ \/ \/

Version 1.1 - Developed by Giuseppe Criscione

Type 'list' to show all allowed commands
Type 'FILE=y' to save results to files like '.txt (default is disabled)'
Type 'FILE=n' to disable saving to files'
Type 'JSON=y' to export results to a JSON files like '
.json (default is disabled)'
Type 'JSON=n' to disable exporting to files'
Run a command: likes
Impossible to execute command: user has private profile Do you want send a follow request? [Y/N]:

Moosa-Imran commented 6 months ago

Instagram has modified its API, leading to the discontinuation of a specific API callback. As a result, the program is experiencing functionality issues.

To address this, follow these steps:

  1. Navigate to the 'src' directory.
  2. Locate the 'Osintgram.py' file.
  3. In the 'setTarget(self, target)' function, find the line that reads self.following = self.check_following().
  4. Comment out this line by adding a '#' at the beginning, like so: #self.following = self.check_following().
  5. Save the changes.

    This adjustment should resolve the issue.

ARKANnnur commented 6 months ago

Omong kosong Instagram mengubah API.... Callback API spesifik itu, Instagram menghentikannya, menyebabkan program tidak bekerja sepenuhnya.

Yang benar-benar perlu Anda lakukan adalah:

1 - buka direktori: src 2 - cari file Osintgram.py 3 - pada baris yang bertuliskan self.following = self.check_following() di fungsi setTarget(self, target) 4 - beri komentar pada baris ini, seperti ini: #self.following = self.check_following(). 5 - Siap, berbahagialah.... Ini seharusnya berhasil.

this work

ARKANnnur commented 6 months ago

Logged in, but still dodnt work ...

\ **|| / | ____ __ / | \ / / |/ \ / __ \ / \ / | \ | | | \ | / // > | // | Y Y \ _ /__ >|**_| /| _ /|**| (__ /**|| / / / / /____/ / /

Version 1.1 - Developed by Giuseppe Criscione

Type 'list' to show all allowed commands Type 'FILE=y' to save results to files like '.txt (default is disabled)' Type 'FILE=n' to disable saving to files' Type 'JSON=y' to export results to a JSON files like '.json (default is disabled)' Type 'JSON=n' to disable exporting to files' Run a command: likes Impossible to execute command: user has private profile Do you want send a follow request? [Y/N]:

FAQ

Can I access the contents of a private profile? No, you cannot get information on private profiles. You can only get information from a public profile or a profile you follow. The tools that claim to be successful are scams!
What is and how I can bypass the challenge_required error? The challenge_required error means that Instagram notice a suspicious behavior on your profile, so needs to check if you are a real person or a bot. To avoid this you should follow the suggested link and complete the required operation (insert a code, confirm email, etc)
sochak33t commented 1 month ago

In v2 repo, this self.following = self.check_following() is not existing anymore. But still same error.