ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[BUG] Exception: OpenAI error!

Open Zeus-Athena opened this issue 2 years ago • 8 comments

Description auth success with google account, but response wrong

Output

python3 -m revChatGPT.V2 -e [email protected] -p xxxxx

You: hi

ChatGPT: error: OpenAI error! Traceback (most recent call last): File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Users/mac/Library/Python/3.9/lib/python/site-packages/revChatGPT/V2.py", line 334, in asyncio.run(main()) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Users/mac/Library/Python/3.9/lib/python/site-packages/revChatGPT/V2.py", line 323, in main async for line in chatbot.ask(prompt=prompt): File "/Users/mac/Library/Python/3.9/lib/python/site-packages/revChatGPT/V2.py", line 164, in ask raise Exception("OpenAI error!") Exception: OpenAI error!

Environment Please update your packages before reporting the issue: pip3 install --upgrade revChatGPT

  • OS: MacOS
  • Python version: Python 3.9.6
  • ChatGPT Version: Version: 2.1.10

Zeus-Athena avatar Feb 13 '23 04:02 Zeus-Athena

same as me. waiting for solutions

ZZY-26-26-25 avatar Feb 13 '23 05:02 ZZY-26-26-25

can you access openai/chatgpt by browser(not this repo)?

msg-bq avatar Feb 13 '23 06:02 msg-bq

Are you using plus account without using --paid?

acheong08 avatar Feb 13 '23 06:02 acheong08

Are you using plus account without using --paid?

not plus account

update version OpenAIAuth-0.2.0 revChatGPT-2.1.14 occur Unknown error

localhost:~ mac$ python3 -m revChatGPT.V2 -e [email protected] -p xxxxx

    ChatGPT - A command-line interface to OpenAI's ChatGPT (https://chat.openai.com/chat)
    Repo: github.com/acheong08/ChatGPT
    

Logging in... Logged in

Type '!help' to show a full list of commands Press enter twice to submit your question.

You: hello

ChatGPT: error: Unknown error Traceback (most recent call last): File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Users/mac/Library/Python/3.9/lib/python/site-packages/revChatGPT/V2.py", line 361, in asyncio.run(main()) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Users/mac/Library/Python/3.9/lib/python/site-packages/revChatGPT/V2.py", line 350, in main async for line in chatbot.ask(prompt=prompt): File "/Users/mac/Library/Python/3.9/lib/python/site-packages/revChatGPT/V2.py", line 169, in ask raise Exception("Unknown error") Exception: Unknown error

Zeus-Athena avatar Feb 13 '23 08:02 Zeus-Athena

can you access openai/chatgpt by browser(not this repo)?

use browser is OK.

Zeus-Athena avatar Feb 13 '23 08:02 Zeus-Athena

the same problem

ljhmily avatar Feb 13 '23 09:02 ljhmily

can you access openai/chatgpt by browser(not this repo)?

use browser is OK.

The two times I encountered "OpenAI error" or "Unknown error", they were both due to the proxy setting error.

It is recommended to use an American proxy, turn on global mode, and pass proxy information into "proxy" parameters or write to environment variables

msg-bq avatar Feb 13 '23 10:02 msg-bq

can you access openai/chatgpt by browser(not this repo)?

use browser is OK.

The two times I encountered "OpenAI error" or "Unknown error", they were both due to the proxy setting error.

It is recommended to use an American proxy, turn on global mode, and pass proxy information into "proxy" parameters or write to environment variables

good !

pass proxy information into "proxy" parameters .

python3 -m revChatGPT.V2 -e [email protected] -p xxxxx --proxy socks5://localhost:1080

It works fine now thanks !

Zeus-Athena avatar Feb 13 '23 12:02 Zeus-Athena