[BUG] Login Exception
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
是的目前还是这个问题。
I meet same bug at Ubuntu 20.04.5 LTS and revChatGPT==0.0.44
I check that the code success get the cf_clearance and user_agent in get_cf_cookies().
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.
Don't need to fill out session_token, cf_clearance, and user_agent. Just update to latest version and delete your config.json
Don't need to fill out
session_token,cf_clearance, anduser_agent. Just update to latest version and delete yourconfig.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
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.
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
https://github.com/acheong08/ChatGPT/issues/307#issuecomment-1350221131