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

ClientLoginError: bad_password #420

Open
5 of 6 tasks
beliboba opened this issue Oct 15, 2023 · 0 comments
Open
5 of 6 tasks

ClientLoginError: bad_password #420

beliboba opened this issue Oct 15, 2023 · 0 comments

Comments

@beliboba
Copy link

beliboba commented Oct 15, 2023

Before submitting an issue, make sure you have:

  • Updated to the lastest version v1.6.0
  • Read the README and docs
  • Searched the bugtracker for similar issues including closed ones
  • Reviewed the sample code in tests and examples

Which client are you using?

  • web (instagram_web_api/)
  • app (instagram_private_api/)

Describe the Bug/Error:

instagram_private_api.errors.ClientLoginError: bad_password

Paste the output of python -V here:
Python 3.11.0

Code:

# Example code that will produce the error reported
from instagram_private_api import Client

bot = Client(username=settings.INSTA_LOGIN, password=settings.INSTA_PASSWORD, proxy=proxy)

Error/Debug Log:

Task exception was never retrieved
future: <Task finished name='Task-2' coro=<start() done, defined at C:\Users\Beliboba\PycharmProjects\tginsta\insta\post.py:35> exception=ClientLoginError('bad_password')>
Traceback (most recent call last):
  File "C:\Users\Beliboba\PycharmProjects\tginsta\venv\Lib\site-packages\instagram_private_api\client.py", line 523, in _call_api
    response = self.opener.open(req, timeout=self.timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Beliboba\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 525, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Beliboba\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 634, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "C:\Users\Beliboba\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 563, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Beliboba\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "C:\Users\Beliboba\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 643, 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 "C:\Users\Beliboba\PycharmProjects\tginsta\insta\post.py", line 43, in start
    bot = Client(username=settings.INSTA_LOGIN, password=settings.INSTA_PASSWORD, proxy=proxy)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Beliboba\PycharmProjects\tginsta\venv\Lib\site-packages\instagram_private_api\client.py", line 208, in __init__
    self.login()
  File "C:\Users\Beliboba\PycharmProjects\tginsta\venv\Lib\site-packages\instagram_private_api\endpoints\accounts.py", line 49, in login
    login_response = self._call_api(
                     ^^^^^^^^^^^^^^^
  File "C:\Users\Beliboba\PycharmProjects\tginsta\venv\Lib\site-packages\instagram_private_api\client.py", line 527, in _call_api
    ErrorHandler.process(e, error_response)
  File "C:\Users\Beliboba\PycharmProjects\tginsta\venv\Lib\site-packages\instagram_private_api\errors.py", line 123, in process
    raise error_info['error'](
instagram_private_api.errors.ClientLoginError: bad_password
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