-
Notifications
You must be signed in to change notification settings - Fork 297
Open
Labels
Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Required for internal Azure reporting. Do not delete. Do not change color.ExemptFromDailyDRIReportUse this label to exclude the issue from the DRI report.Use this label to exclude the issue from the DRI report.bugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.customer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.Indicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.Issue is created by anyone that is not a collaborator in the repository.
Description
Version
I am using the following packages
botbuilder-schema==4.13.0
botbuilder-core==4.13.0
botbuilder-dialogs==4.13.0
Describe the bug
ShowTypingMiddleware goes into an infinite loop of sending typing activity to user when on_error() method of the BotFrameworkAdapter is called. It doesn't stop till the application is restarted. This is easily reproduced in BotBuilder-Samples tested with BotFramework Emulator.
To Reproduce
Steps to reproduce the behavior:
- add
ADAPTER.use(ShowTypingMiddleware(delay=0.5, period=1.0))
to app.py of 13, Core Bot Python Sample - Write some code that takes calls the adapter's on_error() method i.e.
print(ThisIsABug)
in destination step in dialogs/booking_dialog.py - Start the app and test the dialog from BotFramework Emulator.
- The app sends infinite typing activity to the emulator when the error is encountered in code.
Expected behavior
ShowTypingMiddleware should stop sending typing activity if on_error() method is called.
Screenshots
Additional context
NA
Metadata
Metadata
Assignees
Labels
Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Required for internal Azure reporting. Do not delete. Do not change color.ExemptFromDailyDRIReportUse this label to exclude the issue from the DRI report.Use this label to exclude the issue from the DRI report.bugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.customer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.Indicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.Issue is created by anyone that is not a collaborator in the repository.