Forums

WhatsApp Web no longer working on headless chrome?

I have a scheduled task that sends a message on Whatsapp via Selenium using headless chrome. Before the recent WhatsApp Web update, this was working fine. However, since the update, it just fails to login. I've put in extra lines of code to save screenshots to see exactly where it is failing and it seems to say "Make sure your computer has an active internet connection" (see images). I've tried running a similar code on my local desktop which does not use headless chrome and it seems to be working fine.

Connecting

Error

If it's related to update of external software, you should probably check their docs or/and release notes. If it works on your local machine -- make sure that you have exactly the same versions of Python and relevant packages locally and on PythonAnywhere.