I'm using the Python example provided here: https://github.com/wit-ai/pywit/blob/master/examples/messenger.py . I was receiving messages, however lately, a few days ago, but now it doesn't receive messages at all. However, when I try the Nodejs example: https://github.com/wit-ai/node-wit/blob/master/examples/messenger.js that receives messages instantly. Any thoughts on this?
Asked
Active
Viewed 149 times
0
-
Facebook turns off your webhook, if your app fails to respond quickly enough for a while. Try removing it from your app settings, set it up again, and see if that changes things. – misorude Oct 01 '18 at 06:54
1 Answers
0
Though wit.ai is totally free, but seems like there is rate limiting. May be your app crossed rate limit, and then it stopped responding? Read more about it here https://wit.ai/faq

Azizul Hakim
- 154
- 5
-
If that is the case then I should stop receiving messages with Nodejs, the moment I switch to Nodejs, I start receiving messages instantly. – Faizan Ali Oct 01 '18 at 18:40
-
I've contacted with wit.ai, they said they are not that strict about api rate limiting. So, I think there could be other issues. You could try unsubscribe, then subscribe again when this occures. Facebook stops sending new requests after 20 minutes of webhook inactivity. – Azizul Hakim Oct 02 '18 at 07:56
-
Thanks Azizul Hakim, I think the problem is related asynchronicity due to which the code with Nodejs works correctly and Python has some latency. – Faizan Ali Oct 03 '18 at 09:09