botframework-sdk
botframework-sdk copied to clipboard
Occasional unexpected ConversationNotFound
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
What package version of the SDK are you using.
botbuilder-integration-aiohttp~=4.14.5
Describe the bug
Give a clear and concise description of what the bug is.
On installation, we receive and process installation events. From this, we get a Conversation ID, which we use to send messages.
For ~1% of our user-base (more than 5.000 live users, -> ~50 users with this issue), sending a message returns ConversationNotFound
error.
After asking for feedback:
- none of them blocked the bot
- none of them deleted the conversation
- the problem started occurring later in time for some of them.
- for some, it seems resolved at random.
To Reproduce
Steps to reproduce the behavior:
Irreproducable at lower scale, but at large scale:
- Install a Teams bot in Microsoft admin center.
- Capture all installation events and store the Conversation ID for each person.
- Send out messages once a week to everyone
- Start seeing
ConversationNotFound
messages on a small group of them.
Expected behavior
Give a clear and concise description of what you expected to happen.
When the bot is not uninstalled, blocked by user, or blocked by admin, sending a message should work or not work reliably.
Screenshots
If applicable, add screenshots to help explain your problem.
/
Additional context
Add any other context about the problem here.
It is a difficult resource to find documentation for, these errors and what causes them.
Feel free to ask for more context, or point to documentation I must have missed.