Open nizarlj opened 2 years ago
Same problem here:
(instagrapi.exceptions.ClientError: 500 Server Error: Internal Server Error for url: https://i.instagram.com/api/v1/bloks/apps/com.instagram.challenge.navigation.take_challenge/)
with a different code. At login it always asks a challenge code from email, then asks for the password. Finally, it fails with this error. Seems like Instagram keeps blocking the login as it thinks it is an unrecognized login.
@adw0rd Any solution? This seems a big problem
Here the same but without a password...
Enter code (6 digits) for XXXX (ChallengeChoice.EMAIL): 655045 Code entered "655045" for XXXX (0 attempts by 5 seconds) Traceback (most recent call last): File "C:\Users\rubenelportero\AppData\Local\Programs\Python\Python39\lib\site-packages\instagrapi\mixins\private.py", line 298, in _send_private_request response.raise_for_status() File "C:\Users\rubenelportero\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/accounts/login/
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\rubenelportero\AppData\Local\Programs\Python\Python39\lib\site-packages\instagrapi\mixins\private.py", line 434, in private_request self._send_private_request(endpoint, kwargs) File "C:\Users\rubenelportero\AppData\Local\Programs\Python\Python39\lib\site-packages\instagrapi\mixins\private.py", line 330, in _send_private_request raise ChallengeRequired(last_json) instagrapi.exceptions.ChallengeRequired: challenge_required
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\rubenelportero\AppData\Local\Programs\Python\Python39\lib\site-packages\instagrapi\mixins\private.py", line 298, in _send_private_request response.raise_for_status() File "C:\Users\rubenelportero\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/accounts/login/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\rubenelportero\Desktop\Insta-py\test.py", line 4, in
Exact same issue as OP. Any solutions?
Describe the bug New password challenge fails every time.
To Reproduce
Traceback Code entered "991136" for IG_USERNAME (2 attempts by 5 seconds) Password entered "w!174g£j" for IG_USERNAME (0 attempts by 5 seconds) Traceback (most recent call last): File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\private.py", line 298, in _send_private_request response.raise_for_status() File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/feed/reels_tray/
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\private.py", line 434, in private_request self._send_private_request(endpoint, kwargs) File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\private.py", line 330, in _send_private_request raise ChallengeRequired(last_json) instagrapi.exceptions.ChallengeRequired: challenge_required
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\private.py", line 298, in _send_private_request response.raise_for_status() File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://i.instagram.com/api/v1/bloks/apps/com.instagram.challenge.navigation.take_challenge/
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "A:\Programming\python\bots\instabot rewritten\test.py", line 86, in
cl.login(IG_USERNAME, IG_PASSWORD)
File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\auth.py", line 418, in login
self.login_flow()
File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\auth.py", line 167, in login_flow
check_flow.append(self.get_reels_tray_feed("cold_start"))
File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\auth.py", line 244, in get_reels_tray_feed
return self.private_request("feed/reels_tray/", data)
File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\private.py", line 445, in private_request
self.challenge_resolve(self.last_json)
File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\challenge.py", line 78, in challenge_resolve
return self.challenge_resolve_simple(challenge_url)
File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\challenge.py", line 421, in challenge_resolve_simple
return self.bloks_change_password(pwd, self.last_json['challenge_context']) File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\bloks.py", line 46, in bloks_change_password return self.bloks_action("com.instagram.challenge.navigation.take_challenge", data) File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\bloks.py", line 21, in bloks_action result = self.private_request(f"bloks/apps/{action}/", self.with_default_data(data)) File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\private.py", line 447, in private_request raise e File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\private.py", line 434, in private_request self._send_private_request(endpoint, kwargs) File "C:\Users\nizar\AppData\Local\Programs\Python\Python310\lib\site-packages\instagrapi\mixins\private.py", line 374, in _send_private_request raise ClientError(e, response=e.response, last_json) instagrapi.exceptions.ClientError: 500 Server Error: Internal Server Error for url: https://i.instagram.com/api/v1/bloks/apps/com.instagram.challenge.navigation.take_challenge/
Expected behavior Successful login.
Desktop