ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[BUG]Exception: Unknown error

Open ZZY-26-26-25 opened this issue 2 years ago • 13 comments

Description A clear and concise description of what the bug is.

Steps to Reproduce (ros_data_process) apple@Mills-MacBookPro14 ChatGPT-2.1.1 % python3 -m revChatGPT.V2 -e "" -p ""

    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:

You: you

ChatGPT: error: Unknown error Traceback (most recent call last): File "/Users/apple/miniforge3/envs/ros_data_process/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/Users/apple/miniforge3/envs/ros_data_process/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Users/apple/miniforge3/envs/ros_data_process/lib/python3.9/site-packages/revChatGPT/V2.py", line 361, in asyncio.run(main()) File "/Users/apple/miniforge3/envs/ros_data_process/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/Users/apple/miniforge3/envs/ros_data_process/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/Users/apple/miniforge3/envs/ros_data_process/lib/python3.9/site-packages/revChatGPT/V2.py", line 350, in main async for line in chatbot.ask(prompt=prompt): File "/Users/apple/miniforge3/envs/ros_data_process/lib/python3.9/site-packages/revChatGPT/V2.py", line 169, in ask raise Exception("Unknown error") Exception: Unknown error

Output In the correct directory, run the following command: python3 -m revChatGPT --debug No module named revChatGPT.main; 'revChatGPT' is a package and cannot be directly executed

Environment

  • OS: MacOS, m1 chip
  • Python version: python 3.9.15
  • ChatGPT Version: 2.1.14

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

I have the same problem. Have you solved it

wttnb911 avatar Feb 13 '23 14:02 wttnb911

I have the same problem

Amirnoroozi avatar Feb 13 '23 15:02 Amirnoroozi

Same problem

JustAnotherCloudyDay avatar Feb 13 '23 16:02 JustAnotherCloudyDay

Oh, I have an OpenAI Plus subscription, and the solution to my problem was to include paid=True during the chatbot initialization. The module doesn't work without it

JustAnotherCloudyDay avatar Feb 13 '23 16:02 JustAnotherCloudyDay

Plus accounts must either have paid=True in code or --paid in command line

acheong08 avatar Feb 13 '23 16:02 acheong08

but I'm not the plus account. ~~

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

Are you using a Google or Microsoft account? Those aren't supported either and require session tokens

acheong08 avatar Feb 13 '23 17:02 acheong08

Plus accounts must either have paid=True in code or --paid in command line

I'm not the plus accounts and it doesn't work if I make changes with the "paid" QAQ

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

Google and Microsoft don't work either

acheong08 avatar Feb 13 '23 17:02 acheong08

I'm using outlook accounts. Like [email protected]

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

I'm using outlook accounts, seems not Google or Microsoft

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

I'm using outlook accounts, seems not Google or Microsoft

Outlook is Microsoft's email service

JustAnotherCloudyDay avatar Feb 13 '23 17:02 JustAnotherCloudyDay

Thanks. So I had better use other account.

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

Are you using a Google or Microsoft account? Those aren't supported either and require session tokens @acheong08

Does an email like "[email protected]" and password like "password" not work? I don't use the "Continue with Google" button yet I can still sign in, but, I am also getting an error.

ArjunSahlot avatar Feb 14 '23 02:02 ArjunSahlot

Server was DDOSed. It's back up but without --insecure-auth option

acheong08 avatar Feb 14 '23 03:02 acheong08

Is that the cause of the Unknown error? Because it is still happening to me.

ArjunSahlot avatar Feb 14 '23 04:02 ArjunSahlot

Could be a different error then

acheong08 avatar Feb 14 '23 04:02 acheong08

We don't support Microsoft and Google accounts

acheong08 avatar Feb 14 '23 04:02 acheong08

Could you give me an example of what type of account is supported?

ArjunSahlot avatar Feb 14 '23 04:02 ArjunSahlot

Standard OpenAI accounts via email & password. You can also try session tokens https://chat.openai.com/api/auth/session

acheong08 avatar Feb 14 '23 04:02 acheong08

I will add accessToken support later

acheong08 avatar Feb 14 '23 04:02 acheong08

Standard OpenAI accounts via email & password. You can also try session tokens chat.openai.com/api/auth/session

So does that disqualify all emails that end in @gmail.com?

ArjunSahlot avatar Feb 14 '23 04:02 ArjunSahlot

No. Only Google login

acheong08 avatar Feb 14 '23 04:02 acheong08

No. Only Google login

I use the normal email login, but I still get this error. Could there be another possible cause?

ArjunSahlot avatar Feb 14 '23 05:02 ArjunSahlot

I just created a new account (with normal email), and it still doesn't work :(

ArjunSahlot avatar Feb 14 '23 05:02 ArjunSahlot

sample error use qq email login

ttytu2 avatar Feb 14 '23 05:02 ttytu2

Server shut down due to OpenAI

acheong08 avatar Feb 14 '23 05:02 acheong08

Server shut down due to OpenAI

I can use chatgpt through browser but failed when using api with email passwd and session_token

ypatz avatar Feb 14 '23 06:02 ypatz

Server shut down due to OpenAI

I can use chatgpt through browser but failed when using api with email passwd and session_token

same case

Gauss-G avatar Feb 14 '23 06:02 Gauss-G

Server shut down due to OpenAI

Can we self host?

ArjunSahlot avatar Feb 14 '23 06:02 ArjunSahlot