slippersheepig/chatgpt-html

OpenAIAuth.Error

lxg20082008 opened this issue · 2 comments

Docker logs:
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 76, in begin
self.__part_one(token=csrf_token)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 117, in __part_one
self.__part_two(url=url)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 146, in __part_two
self.__part_three(state=state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 170, in __part_three
self.__part_four(state=state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 208, in __part_four
self.__part_five(state=state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 245, in __part_five
self.__part_six(old_state=state, new_state=new_state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 271, in __part_six
self.__part_seven(redirect_url=redirect_url, previous_url=url)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 300, in __part_seven
raise Error(
OpenAIAuth.Error
[2023-03-03 14:45:15 +0000] [7] [INFO] Worker exiting (pid: 7)
[2023-03-03 14:45:16 +0000] [1] [INFO] Shutting down: Master
[2023-03-03 14:45:16 +0000] [1] [INFO] Reason: Worker failed to boot.
[2023-03-03 14:45:23 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2023-03-03 14:45:23 +0000] [1] [INFO] Listening at: http://0.0.0.0:8088 (1)
[2023-03-03 14:45:23 +0000] [1] [INFO] Using worker: gevent
[2023-03-03 14:45:23 +0000] [7] [INFO] Booting worker with pid: 7
[2023-03-03 14:45:31 +0000] [7] [ERROR] Exception in worker process

config.json:
{
"email": "填写你的OpenAI账号(即邮箱)",
"password": "填写你的OpenAI密码"
}

This error is strange because the author had fixed it for some time.
You should double check your account settings (json format) and your network whether it could access the websites of openai.
If you still can't solve the problem, I suggest you open an issue at https://github.com/acheong08/ChatGPT/issues

Thanks. As your comments I guess there is network issue as I'm in Russia. I can access chatGPT from PC with clash for Windows to login. I installed clash in my Linux machine as well but with no luck. Any idea?
The output of the ping command shows that your machine was able to successfully reach the IP address of OpenAI's website (13.107.238.45) and received a response. 'curl -I https://openai.com/' indicates that the request was successful and the website is accessible. 'curl https://openai.com/' downloaded the HTML content of the webpage.