Open MrOrz opened 4 years ago
Steps to reproduce: Submit a big picture with lots of text. Chatbot will be busy doing OCR and by the time OCR finishes, chatbot's reply will be swallowed and there will be "invalid reply token" error.
From LINE messaging API doc:
Because the reply token becomes invalid after a certain period of time, responses should be sent as soon as a message is received. https://developers.line.biz/en/reference/messaging-api/#send-reply-message
It seems that the reply token is only available for 30-ish seconds. Replying beyond that time will raise such error, and from LINE user perspective, the chatbot reads the message but has no reply.
Similar encounter here: https://github.com/line/line-bot-sdk-python/issues/145#issuecomment-473805725
Fixed again by #157
View details in Rollbar: https://rollbar.com/mrorz/rumors-line-bot/items/56/