DEV Community

Discussion on: I Built a Python WhatsApp Bot to Keep Me Sane During Quarantine

Collapse
 
mirdotbhatia profile image
Mir Bhatia

Hi, thanks for the quick response.

It still doesn't work, unfortunately. The URLs change every time the server is started, yes? I tried to play around with that and added /bot/ at the end, but it still doesn't seem to work for me.

/bot/ is added only in the Twilio config, yes? Or does that go in the python file too. It throws an error rn, but I just want to be sure.

Thread Thread
 
zeyu2001 profile image
Zhang Zeyu

Yup, the ngrok URLs change every time you start ngrok, and /bot/ is added only in the Twilio config.

Have you added the ngrok URL to your ALLOWED_HOSTS in settings.py?

Is Python raising any errors or is it just a 404? If it's just a 404, you might want to check your urls.py files in both the bot and the bot_app folder.

The source code is available at my GitHub, so you can check against that.

Thread Thread
 
mirdotbhatia profile image
Mir Bhatia

Perfect, I'll compare my code against your github repo and then let you know if something's up.

Thanks!