-
Notifications
You must be signed in to change notification settings - Fork 481
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
The ShowTypingMiddleware throws System.ObjectDisposedException when an exception occurs in the bot #6752
Comments
Maybe the question is – if there is no bug – how to correctly handle exceptions in the Please advice. Thank you. |
Menawhile we created a custom middleware. It is actually a copy of yours, but with a slightly different
Please notice the Thank you. |
Hi @rliberoff, |
Hi @JhontSouth! Thank you. If there’s anything more I can assist you with, please don’t hesitate to reach out. |
…eption when an exception occurs in the bot (#6772) * avoid faulted task to dispose * remove nested if * remove blank spaces
Merged in #6772. Available next release. |
…eption when an exception occurs in the bot (#6772) * avoid faulted task to dispose * remove nested if * remove blank spaces
Version
I'm using 4.22.2
Describe the bug
When using the
ShowTypingMiddleware
in aCloudAdapter
, it thows anSystem.ObjectDisposedException
with messageCannot access a disposed object. Object name: 'Get'.
after an exception has been handled by theOnTurnError
error handler.This is the stack trace:
To Reproduce
Just create the simplest bot possible and
Use
theShowTypingMiddleware
. Produce an exception to be capture and handled by theCloudAdapter
with theOnTurnError
handler. Then throw a second exception and you will get this error.Expected behavior
This middleware should show a typing indicator in Microsoft Teams and also in a web chat without throwing exceptions.
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: