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

Instagram api error #1007

Open MohammadZohaaib opened 4 months ago

MohammadZohaaib commented 4 months ago

Please help me to resolve this issue

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/zohaib/Osintgram/venv/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//Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home//Osintgram/src/Osintgram.py", line 47, in init self.setTarget(target) File "/home//Osintgram/src/Osintgram.py", line 60, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home//Osintgram/src/Osintgram.py", line 1160, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home//Osintgram/venv/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home//Osintgram/venv/lib/python3.11/site-packages/instagram_private_api/errors.py", line 141, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

crz81 commented 4 months ago

i got the same issue.... I still don't have a solution.

MohammadZohaaib commented 4 months ago

Why everyone getting the same issue?

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 02/20/24, 07:35:51 PM

On Tue, Feb 20, 2024 at 7:21 PM crz81 @.***> wrote:

i got the same issue.... I still don't have a solution.

— Reply to this email directly, view it on GitHub https://github.com/Datalux/Osintgram/issues/1007#issuecomment-1954319744, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7XRFEW2KSBJWNOO2VTD5RTYUSWP5AVCNFSM6AAAAABDP6NB4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUGMYTSNZUGQ . You are receiving this because you authored the thread.Message ID: @.***>

DrLexLuthor commented 4 months ago

i got the same issue. Does anyone know to fix it

Ghost78542 commented 4 months ago

The error you encountered is an HTTP 404 error, specifically "Not Found." This error occurs when the server cannot find the requested resource. In your case, it seems that the API you are using is trying to access a resource that does not exist or is not available.

To troubleshoot this issue, you can check the following:

  1. Verify the correctness of the endpoint or URL you are trying to access. Make sure it is valid and points to an existing resource.
  2. Ensure that you have the necessary permissions or credentials to access the resource. If authentication is required, double-check your credentials.
  3. Check if the resource you are trying to access is temporarily unavailable or has been moved or deleted. Contact the API provider or refer to their documentation for more information.

It's important to note that this error is specific to the API you are using and its implementation. The exact meaning and troubleshooting steps may vary depending on the API and its documentation.

Blankred0 commented 4 months ago

Got the same issue ...

BeChris100 commented 4 months ago

The error you encountered is an HTTP 404 error, specifically "Not Found." This error occurs when the server cannot find the requested resource. In your case, it seems that the API you are using is trying to access a resource that does not exist or is not available.

To troubleshoot this issue, you can check the following:

1. Verify the correctness of the endpoint or URL you are trying to access. Make sure it is valid and points to an existing resource.

2. Ensure that you have the necessary permissions or credentials to access the resource. If authentication is required, double-check your credentials.

3. Check if the resource you are trying to access is temporarily unavailable or has been moved or deleted. Contact the API provider or refer to their documentation for more information.

It's important to note that this error is specific to the API you are using and its implementation. The exact meaning and troubleshooting steps may vary depending on the API and its documentation.

Comes straight out of ChatGPT. May you not use GPT for everything?

BeChris100 commented 4 months ago

Also, just look at this specific Documentation that I wrote under my repo, which basically showcases on what goes wrong. Make sure that you read everything.