Osintgram icon indicating copy to clipboard operation
Osintgram copied to clipboard

i need help : 1) instagram_private_api.errors.ClientError: Not Found 2) urllib.error.HTTPError: HTTP Error 404: Not Found

Open theblackdeveil opened this issue 2 years ago • 29 comments
trafficstars

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/kali/.local/lib/python3.11/site-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/tools/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/tools/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/kali/tools/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/tools/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/kali/.local/lib/python3.11/site-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

theblackdeveil avatar Feb 24 '23 17:02 theblackdeveil

same for me

z7pz avatar Feb 24 '23 23:02 z7pz

same issue here, is there any hotfix?

dev-veteran avatar Feb 24 '23 23:02 dev-veteran

Lo mismo, ya no funciona, yo estoy usando instaloader de parrot pero no es lo mismo, que pena que esto ya no funcione

elyeti avatar Feb 25 '23 09:02 elyeti

some body help us pleaaaaase

Bro only contribute can u🙄

gaur-avvv avatar Feb 25 '23 14:02 gaur-avvv

I think this service is no longer usable its been month that it been offline and no word from creator

FrankVerse avatar Feb 25 '23 19:02 FrankVerse

I think this service is no longer usable its been month that it been offline and no word from creator

Creator left git🙂

gaur-avvv avatar Feb 26 '23 13:02 gaur-avvv

I think this service is no longer usable its been month that it been offline and no word from creator

Creator left git🙂

gg💔

theblackdeveil avatar Feb 27 '23 10:02 theblackdeveil

please anyone update me if any new version of this launches or any other tool

Irfan-khan-i avatar Feb 27 '23 13:02 Irfan-khan-i

Same issue, waiting for a update or some solution by the creator

Dexz0 avatar Feb 27 '23 21:02 Dexz0

I think until the middle of March solves the problem

Dexz0 avatar Feb 27 '23 21:02 Dexz0

I think this service is no longer usable its been month that it been offline and no word from creator

Creator left gitslightly_smiling_face

will he come back?

Dexz0 avatar Feb 27 '23 21:02 Dexz0

I have the same error.

dpanic avatar Mar 06 '23 14:03 dpanic

As this project is dead, is there any alternative?

dpanic avatar Mar 06 '23 15:03 dpanic

As this project is dead, is there any alternative?

theres a tool called terra, but thats also having the same issue, the git creator is github.com/xadhrit/.

Like i said though, its having the same issue when you attempt to login with the updated login details, it has a twitter lookup tool built in as well.

locnal avatar Mar 06 '23 20:03 locnal

remove the directory and reinstall and plugin a proxy will be tedious but i think this might work also use a fake insta had to learn this one the hard way

8wolfgang8 avatar Mar 18 '23 07:03 8wolfgang8

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/kali/.local/lib/python3.11/site-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/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 48, in init self.setTarget(target) File "/home/kali/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/kali/.local/lib/python3.11/site-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

nono233dc avatar Mar 20 '23 21:03 nono233dc

Attempt to login... ClientCookieExpiredError/ClientLoginRequiredError: Cookie expired at 1628592384 Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/kali/.local/lib/python3.11/site-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/Escritorio/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Escritorio/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/kali/Escritorio/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Escritorio/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/kali/.local/lib/python3.11/site-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

b4j0n1tz avatar May 28 '23 19:05 b4j0n1tz

Try this: cd Osintgram/config echo "{}" > settings.json Then cd .. make setup Enter your Username Enter your Password

MR1TNT avatar Jun 01 '23 22:06 MR1TNT

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/dhanu/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dhanu/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/dhanu/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/dhanu/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

dhanushndk avatar Sep 20 '23 05:09 dhanushndk

Try this: cd Osintgram/config echo "{}" > settings.json Then cd .. make setup Enter your Username Enter your Password

not working. the dev left the project

ddorigoddorigo avatar Sep 26 '23 15:09 ddorigoddorigo

this form chatGPT the error is 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/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 48, in init self.setTarget(target) File "/home/kali/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/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

chatGPT

The error you encountered seems to indicate an issue with the response from the Instagram API. The specific error "HTTP Error 404: Not Found" suggests that the resource you are trying to access does not exist or cannot be found at the specified endpoint.

Here are some steps you can take to address this issue:

  1. Check API Endpoint: Verify that the API endpoint you are using is correct and valid. Make sure that the resource you are trying to access exists and that you are using the appropriate endpoint for the action you are attempting to perform.

  2. Review Authentication: Ensure that the authentication credentials you are using are valid and have the necessary permissions to access the requested resource. Review the authentication process to confirm its correctness.

  3. Handle Error Responses: Implement proper error handling in your code to handle HTTP errors, such as the 404 error. Use try-except blocks to capture and handle specific HTTP errors, providing meaningful error messages for debugging purposes.

  4. Check for Rate Limiting: Ensure that you are not making too many requests to the Instagram API within a short time period. Exceeding rate limits can result in 404 errors or other HTTP errors. Implement rate limiting strategies in your code to avoid this issue.

  5. Review the API Documentation: Check the latest Instagram API documentation to ensure there have been no recent changes to the endpoints or the API structure that might be causing the 404 error. Stay updated with any changes to the API that might affect your script.

By following these steps, you should be able to identify and address the issue causing the 404 error when attempting to use the Instagram API in your script. If the problem persists, consider reaching out to the Instagram API support or community for further assistance. if someone can help and fix it

majdyousef07 avatar Oct 15 '23 18:10 majdyousef07

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.

robertopv avatar Dec 17 '23 05:12 robertopv

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/kali/.local/lib/python3.11/site-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/Desktop/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Desktop/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/kali/Desktop/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Desktop/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/kali/.local/lib/python3.11/site-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

ABDELHAMID1999 avatar Jan 06 '24 11:01 ABDELHAMID1999

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.

valeu irmão, funcionou aqui! salvou a ferramenta. tks

r4tsz avatar Feb 07 '24 17:02 r4tsz

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.

Deu certo! Vc é god.

victorxmoreira avatar Mar 21 '24 05:03 victorxmoreira

same error.... any solution

KaliHub-01 avatar Apr 21 '24 14:04 KaliHub-01

Solution Flow:

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

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

The issue lies in the authentication of your account with instagram

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.

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

Use an older IG account or get a developer account.

KaliHub-01 avatar Apr 21 '24 14:04 KaliHub-01