rawandahmad698 / PyChatGPT

⚡️ Python client for the unofficial ChatGPT API with auto token regeneration, conversation tracking, proxy support and more.
MIT License
4.22k stars 447 forks source link

[BUG] Cannot login #143

Open tiagorangel2011 opened 1 year ago

tiagorangel2011 commented 1 year ago

Describe the bug I can't log in. Error:

Traceback (most recent call last):
  File "c:\Users\<Path>\chatgpt.py", line 3, in <module>
    chat = Chat(email="<my email>", password="<my password>")
  File "C:\Users\XXXXXXXX\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_XXXXXXXX\LocalCache\local-packages\Python39\site-packages\pychatgpt\main.py", line 56, in __init__
    self._setup()
  File "C:\Users\XXXXXXXX\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_XXXXXXXX\LocalCache\local-packages\Python39\site-packages\pychatgpt\main.py", line 145, in _setup
    self._create_access_token()
  File "C:\Users\XXXXXXXX\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_XXXXXXXX\LocalCache\local-packages\Python39\site-packages\pychatgpt\main.py", line 163, in _create_access_token
    openai_auth.create_token()
  File "C:\Users\XXXXXXXX\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_XXXXXXXX\LocalCache\local-packages\Python39\site-packages\pychatgpt\classes\openai.py", line 133, in create_token
    raise Exceptions.Auth0Exception("Failed to make the first request, Try that again!")
pychatgpt.classes.exceptions.Auth0Exception: Failed to make the first request, Try that again!

To Reproduce Steps to reproduce the behavior:

  1. Run any kind of demo
  2. Get the error

Expected behavior Simply run without errors

Screenshots Removed because of leaked auth info. Thanks @oshcon for warning me about this.

Version Info (please complete the following information):

Additional context Before you ask me, yes, the password and email ARE correct. Double-checked.

egorbabushka commented 1 year ago

I also get this error. I displayed the error code that the site gives out and it gave out "403 Forbidden".

tiagorangel2011 commented 1 year ago

Maybe related to #71?