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.76k stars 2.16k forks source link

urllib.error.HTTPError: HTTP Error 400: Bad Request #28

Closed santiagodemierre closed 4 years ago

santiagodemierre commented 4 years ago

I Installed the new api and I get this The config files were not changed, I was logged in before that.

Traceback (most recent call last): File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) File "/usr/lib/python3.6/urllib/request.py", line 532, in open response = meth(req, response) File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.6/urllib/request.py", line 570, in error return self._call_chain(args) File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(args) File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 77, in api = Osintgram(args.id, args.file, args.json) File "/home/santiago/Devel/Osintgram/src/Osintgram.py", line 28, in init self.api = AppClient(auto_patch=True, authenticate=True, username=u, password=p) File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/client.py", line 208, in init self.login() File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/endpoints/accounts.py", line 50, in login 'accounts/login/', params=login_params, return_response=True) File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/errors.py", line 125, in process error_response=json.dumps(error_obj) instagram_private_api.errors.ClientLoginError: bad_password

Datalux commented 4 years ago

I Installed the new api and I get this The config files were not changed, I was logged in before that.

Traceback (most recent call last): File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) File "/usr/lib/python3.6/urllib/request.py", line 532, in open response = meth(req, response) File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.6/urllib/request.py", line 570, in error return self._call_chain(args) File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(args) File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 77, in api = Osintgram(args.id, args.file, args.json) File "/home/santiago/Devel/Osintgram/src/Osintgram.py", line 28, in init self.api = AppClient(auto_patch=True, authenticate=True, username=u, password=p) File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/client.py", line 208, in init self.login() File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/endpoints/accounts.py", line 50, in login 'accounts/login/', params=login_params, return_response=True) File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/errors.py", line 125, in process error_response=json.dumps(error_obj) instagram_private_api.errors.ClientLoginError: bad_password

Seems that you insert a wrong password. I can replicate the error only inserting a wrong password.

santiagodemierre commented 4 years ago

I checked my password and it was fine. Funny thing is that the same file was login me in before the change. I could not download photos, but I was loged in.

Desze commented 4 years ago

ward

Datalux commented 4 years ago

No update, closing.