You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
Using Line platform, replying text in the error handler (aka _error.js) did not actually send replied text to Line following the guide for error handling in Line.
Expected behavior
A clear and concise description of what you expected to happen.
The bot should reply "something wrong 😰".
Additional context
Add any other context about the problem here.
Since the ctx.handlerDidEnd() was skipped (as the following snippet) while the error happened and also ctx._shouldBatch was still true, the reply was left in the buffer without sending it out.
Describe the bug
A clear and concise description of what the bug is.
Using Line platform, replying text in the error handler (aka
_error.js
) did not actually send replied text to Line following the guide for error handling in Line.To Reproduce
Steps to reproduce the behavior:
index.js
)_error.js
.I found that on the context object,
ctx._shouldBatch
is still true which will cause all calls toctx.replyText()
buffered.Expected behavior
A clear and concise description of what you expected to happen.
The bot should reply "something wrong 😰".
Additional context
Add any other context about the problem here.
Since the
ctx.handlerDidEnd()
was skipped (as the following snippet) while the error happened and alsoctx._shouldBatch
was stilltrue
, the reply was left in the buffer without sending it out.bottender/packages/bottender/src/bot/Bot.ts
Lines 287 to 298 in 7c400c7
The text was updated successfully, but these errors were encountered: