daveebbelaar / python-whatsapp-bot

Build AI WhatsApp Bots with Pure Python
https://www.datalumina.com
MIT License
648 stars 396 forks source link

Not working on Ngrok free account? #18

Open EdEn-D opened 1 month ago

EdEn-D commented 1 month ago

Can anyone confirm that they got this to work with an Ngrok free account?

My suspicion is that due to the browser warning that comes up with the free account, meta is not able to verify and this step fails... Trying other methods, will update.

DanielGarciaCol commented 1 month ago

Hi! Recently I had this same issue, I ended up leaving Ngrok. I recommend you to use Serveo instead.

https://serveo.net/

If serveo for some reason isn't available please try localhost.run

http://localhost.run/

Greetings :)

CeadeS commented 1 month ago

Hi! Recently I had this same issue, I ended up leaving Ngrok. I recommend you to use Serveo instead.

https://serveo.net/

If serveo for some reason isn't available please try localhost.run

http://localhost.run/

Greetings :)

Nice service!

EdEn-D commented 1 month ago

Hi! Recently I had this same issue, I ended up leaving Ngrok. I recommend you to use Serveo instead.

https://serveo.net/

If serveo for some reason isn't available please try localhost.run

http://localhost.run/

@DanielGarciaCol I set up the serveo and localhose but for some reason my Flask server doesn't seem to catch any requests... I'm not sure what I'm doing wrong

DanielGarciaCol commented 1 month ago

Hey @EdEn-D ! Try checking the ports. When you start the tunnel, you get a URL that changes every time you open a new tunnel. This means you need to update your webhook URL in Meta's developer portal. Also, don’t forget to update your environment variables accordingly.

EdEn-D commented 1 month ago

Hey @EdEn-D ! Try checking the ports. When you start the tunnel, you get a URL that changes every time you open a new tunnel. This means you need to update your webhook URL in Meta's developer portal. Also, don’t forget to update your environment variables accordingly.

@DanielGarciaCol If you mean update the .env I did. And I got the changing URL.. but still, I get no connections from that URL provided by either serveo or localhost.run on my flask server when accessing it myself through the browser or when trying to verify. Tried several ports. There is something I seem to be missing to make the connection between the serveo/localhost.run domain and my flask server

Edit: just did it :'D I'm so happy I'm gonna cry after 3rd day of debugging I just need to 'sudo ufw allow ssh' Edit2: Make sure to use WSL!

EdEn-D commented 1 month ago

@DanielGarciaCol serveo seems to be down today, following the same process with localhost.run also left me not being able to verify :( . Any idea why this could be? I authenticated my user with localhost.run with SSH, no luck