Error login #96
-
Hi, I'm trying to log in but i get this error: requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/accounts/login/ The account doesn't have 2 factor auth. im using this code to test: from instagrapi import Client
from instagrapi.types import Location, StoryMention, StoryLocation, StoryLink, StoryHashtag
cl = Client()
cl.login('username', 'password')
media_path = cl.video_download(
cl.media_pk_from_url('https://www.instagram.com/p/CGgDsi7JQdS/')
)
adw0rd = cl.user_info_by_username('adw0rd')
loc = cl.location_complete(Location(name='Test', lat=42.0, lng=42.0))
ht = cl.hashtag_info('dhbastards')
cl.video_upload_to_story(
media_path,
"Credits @adw0rd",
mentions=[StoryMention(user=adw0rd, x=0.49892962, y=0.703125, width=0.8333333333333334, height=0.125)],
locations=[StoryLocation(location=loc, x=0.33, y=0.22, width=0.4, height=0.7)],
links=[StoryLink(webUri='https://github.com/adw0rd/instagrapi')],
hashtags=[StoryHashtag(hashtag=ht, x=0.23, y=0.32, width=0.5, height=0.22)],
) |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
@NicolasSDuoc SentryError? |
Beta Was this translation helpful? Give feedback.
-
This error has been fixed, as @adw0rd says. Look at #103 (comment). |
Beta Was this translation helpful? Give feedback.
-
This issue still exists Log: Then I tried with a proxy service as well, and still got the same error. But also getting the login 400 Client error. Attaching the log here: {Proxy settings} Traceback (most recent call last): File ~/anaconda3/lib/python3.10/site-packages/instagrapi/mixins/private.py:360 in _send_private_request File ~/anaconda3/lib/python3.10/site-packages/requests/models.py:1021 in raise_for_status 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 ~/anaconda3/lib/python3.10/site-packages/spyder_kernels/py3compat.py:356 in compat_exec File ~/Coding/python/instagrapi/main.py:19 File ~/anaconda3/lib/python3.10/site-packages/instagrapi/mixins/auth.py:403 in login File ~/anaconda3/lib/python3.10/site-packages/instagrapi/mixins/private.py:535 in private_request File ~/anaconda3/lib/python3.10/site-packages/instagrapi/mixins/private.py:520 in private_request File ~/anaconda3/lib/python3.10/site-packages/instagrapi/mixins/private.py:438 in _send_private_request ProxyAddressIsBlocked: Instagram has blocked your IP address, use a quality proxy provider (not free, not shared) |
Beta Was this translation helpful? Give feedback.
-
Getting this error |
Beta Was this translation helpful? Give feedback.
-
getting this error too |
Beta Was this translation helpful? Give feedback.
-
I started getting this error recently as well. I have a crontab to make some posts for me, and it had been working fine for months. I haven't changed anything in the code, but it recently started throwing this error. |
Beta Was this translation helpful? Give feedback.
-
I get this error using the one_tap_login() HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/accounts/one_tap_app_login/ UnknownError: nonce_rate_limited (invalid_one_tap_nonce) But my code seems right: one_tap_app_login(self.uid, self.logout_result["login_nonce"]) EXAMPLE LOGOUT response
|
Beta Was this translation helpful? Give feedback.
This error has been fixed, as @adw0rd says. Look at #103 (comment).