Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 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/ #1873

Open
DNL-Dami opened this issue Apr 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@DNL-Dami
Copy link

I have an 400 Bad request error when try to login and then instagrapi calls https://i.instagram.com/api/v1/accounts/login/ and I get

Traceback (most recent call last):
File "C:\Users\DNL-Dami\Documents\CODES\Instragram Bot\env\Lib\site-packages\instagrapi\mixins\private.py", line 359, in _send_private_request
response.raise_for_status()
File "C:\Users\DNL-Dami\Documents\CODES\Instragram Bot\env\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\DNL-Dami\Documents\CODES\Instragram Bot\bot.py", line 7, in
client.login(username, password)
File "C:\Users\DNL-Dami\Documents\CODES\Instragram Bot\env\Lib\site-packages\instagrapi\mixins\auth.py", line
441, in login
logged = self.private_request("accounts/login/", data, login=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DNL-Dami\Documents\CODES\Instragram Bot\env\Lib\site-packages\instagrapi\mixins\private.py", line 541, in private_request
raise e
File "C:\Users\DNL-Dami\Documents\CODES\Instragram Bot\env\Lib\site-packages\instagrapi\mixins\private.py", line 526, in private_request
self._send_private_request(endpoint, **kwargs)
File "C:\Users\DNL-Dami\Documents\CODES\Instragram Bot\env\Lib\site-packages\instagrapi\mixins\private.py", line 382, in _send_private_request
raise PleaseWaitFewMinutes(e, response=e.response, **last_json)
instagrapi.exceptions.PleaseWaitFewMinutes: Please wait a few minutes before you try again.

@DNL-Dami DNL-Dami added the bug Something isn't working label Apr 11, 2024
@tajbowness
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants