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

BAD PASSWORD ERROR? #1158

Open
Excaliburr00 opened this issue Sep 21, 2024 · 1 comment
Open

BAD PASSWORD ERROR? #1158

Excaliburr00 opened this issue Sep 21, 2024 · 1 comment

Comments

@Excaliburr00
Copy link

AttributeError: 'BadPassword' object has no attribute 'msg'

How do I fix this shit I'm almost manage to fix all the another error that I'm getting but this I can't fix pls help

@Excaliburr00
Copy link
Author

Attempt to login...
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 359, in _send_private_request
response.raise_for_status()
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/requests/models.py", line 1024, 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 "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 942, in login
client.login(u, p)
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/instagrapi/mixins/auth.py", line 441, in login
logged = self.private_request("accounts/login/", data, login=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 541, in private_request
raise e
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 526, in private_request
self._send_private_request(endpoint, **kwargs)
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 415, in _send_private_request
raise BadPassword(**last_json)
instagrapi.exceptions.BadPassword: You can log in with your linked Facebook account. If you are sure that the password is correct, then change your IP address, because it is added to the blacklist of the Instagram Server

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/data/data/com.termux/files/home/Osintgram/main.py", line 96, in
api = Osintgram(args.id, args.command)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 49, in init
self.login(u, p)
File "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 952, in login
pc.printout('ClientError {0!s} (Code: {1:d}, Response: {2!s})'.format(e.msg, e.code, e.error_response), pc.RED)
^^^^^
AttributeError: 'BadPassword' object has no attribute 'msg'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant