danielgross / whatsapp-gpt

MIT License
3.08k stars 600 forks source link

Can't pass the "Checking if the site connection is secure" in open.ai #28

Open idan3 opened 1 year ago

idan3 commented 1 year ago

I'm getting stuck on this page:

Screenshot 2022-12-23 at 23 13 28

Is there something to do about it?

NikolaVekic commented 1 year ago

@idan3 use firefox instead of chrome, to do this change the code in server.py, I got past this issue with this, but there is a problem after that and that is that the machine can't respond and the bot doesn't work on WhatsApp, haven't gotten a response on how to fix this yet.

BROWSER = PLAY.firefox.launch_persistent_context(
    user_data_dir="/tmp/playwright",
    headless=False,
    java_script_enabled=True,
)
rubingosaliya commented 1 year ago

Any updates?

Joeynn commented 1 year ago

I am getting the same issue. Infinite loop of "Checking if the site connection is secure" in open.ai and when I changed the python code to use Firefox instead of Chromium using the below code:

BROWSER = PLAY.firefox.launch_persistent_context( user_data_dir="/tmp/playwright", headless=False, java_script_enabled=True, )

it's not working as well, and it's not showing the CF verification.

image

Anyone solved this issue ?

kazzastic commented 1 year ago

@idan3 use firefox instead of chrome, to do this change the code in server.py, I got past this issue with this, but there is a problem after that and that is that the machine can't respond and the bot doesn't work on WhatsApp, haven't gotten a response on how to fix this yet.

BROWSER = PLAY.firefox.launch_persistent_context(
    user_data_dir="/tmp/playwright",
    headless=False,
    java_script_enabled=True,
)

I was getting the same error for the longest time and with this solution it started working

kazzastic commented 1 year ago

@danielgross should someone change the browser to firefox and make a PR or does it work on your system just fine?

GiXhnu commented 1 year ago

same here

Torrestris commented 1 year ago

I followed the steps from @Joeynn and it worked for me but just prompts me to login to chatgpt and use it from the website? At what point is it able to connect to whatsapp?

kazzastic commented 1 year ago

I followed the steps from @Joeynn and it worked for me but just prompts me to login to chatgpt and use it from the website? At what point is it able to connect to whatsapp?

when you start the go server it connects your whatsapp with the go server. Once that is done you can open the python server in another terminal. So every time you get a message the go script will send the message to python where it will send it to gpt and the response from gpt will follow the same route and will be sent as a reply to whatever message you get.