Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LINE Client] 400: Invalid reply token. #154

Open
MrOrz opened this issue Feb 11, 2020 · 2 comments · Fixed by #156
Open

[LINE Client] 400: Invalid reply token. #154

MrOrz opened this issue Feb 11, 2020 · 2 comments · Fixed by #156
Assignees

Comments

@MrOrz
Copy link
Member

MrOrz commented Feb 11, 2020

View details in Rollbar: https://rollbar.com/mrorz/rumors-line-bot/items/56/

[LINE Client] 400: Invalid reply token.
@MrOrz
Copy link
Member Author

MrOrz commented Feb 11, 2020

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: line/line-bot-sdk-python#145 (comment)

@MrOrz
Copy link
Member Author

MrOrz commented Feb 29, 2020

Fixed again by #157

@MrOrz MrOrz closed this as completed Feb 29, 2020
@MrOrz MrOrz reopened this Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants