webhook OK 200 response
olijohnson opened this issue · 0 comments
Hello
I'm aware that Facebook requires a OK 200 response within 20 seconds or it will resend the webhook requests. My bot does some processing in the background, which doesn't take 20 seconds, but I still (on occasion and not very consistently) receive another webhook request before the first one responds with a 200 status. This makes the bot repost a message or in some cases repost them again and again and again.
I have seen some suggestions that submitting the 200 status after a few seconds, even though it's nowhere near the 20 seconds limit, causes issues. And so I'm thinking whether submitting the 200 status before I do some background work and post a reply, is possible. And if so - where should I look?