ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[BUG] Login Exception

Open Smi1eSEC opened this issue 3 years ago • 9 comments

python3 -m revChatGPT --debug A login window pops up, the browser window automatically closes after successful login, and then keeps popping up the browser and then closes again

Smi1eSEC avatar Dec 14 '22 02:12 Smi1eSEC

是的目前还是这个问题。

xdtxAM avatar Dec 14 '22 04:12 xdtxAM

I meet same bug at Ubuntu 20.04.5 LTS and revChatGPT==0.0.44

DTDwind avatar Dec 14 '22 05:12 DTDwind

I check that the code success get the cf_clearance and user_agent in get_cf_cookies().

DTDwind avatar Dec 14 '22 06:12 DTDwind

Same bugs for me, here is how I define my config and start the bot:

from revChatGPT.revChatGPT import Chatbot

config = {
    "session_token": "xxxxxxxxxxxxxxxxxxxxxxxx",
    "cf_clearance": "xxxxxxxxxxxxxxxxxxxxxxxx",
    "user_agent": "xxxxxxxxxxxxxxxxxxxxxxxx",
}

chatbot = Chatbot(config, conversation_id=None)

But as the browser popped up but automatically login failed, I got this page then the browser closed.

图片

This process repeated again and again. And I also find that every time I use the same browser to open chatGPT I got different session_token and cf_clearance, and I wonder whether this trouble login in process.

Thanks in advance.

NicholasYe avatar Dec 14 '22 07:12 NicholasYe

Don't need to fill out session_token, cf_clearance, and user_agent. Just update to latest version and delete your config.json

acheong08 avatar Dec 14 '22 07:12 acheong08

Don't need to fill out session_token, cf_clearance, and user_agent. Just update to latest version and delete your config.json

I experienced the same problem, already on the latest version and I didn't fill in anything in the config, but the browser closed after I logged in, and then immediately popped out the new browser, and then repeated repeatedly, I was running on M1 mac btw

Zero6992 avatar Dec 14 '22 08:12 Zero6992

I successfully login in manually and see the chat window before the browser automatically closed, but it pops up again and repeated to login in, I am not sure why this happens. Here is my test code:

from revChatGPT.revChatGPT import Chatbot

config = {} 

chatbot = Chatbot(config, conversation_id=None, debug=True)
message = chatbot.get_chat_response('Hello', output="text")
print(message['message'])

I actually do not have any config.json in my folder, and my version is revChatGPT-0.0.44, I also tried to delete config but it seems Chatbot() class needs a config to initialize.

NicholasYe avatar Dec 14 '22 08:12 NicholasYe

config = {}

Leaving it empty like this should work

but it pops up again and repeated to login in, I am not sure why this happens. Here is my test code:

Seems to be a bug with playwright. I think they found a solution for this on the Chinese discord channel

acheong08 avatar Dec 14 '22 08:12 acheong08

https://github.com/acheong08/ChatGPT/issues/307#issuecomment-1350221131

acheong08 avatar Dec 14 '22 08:12 acheong08