"sorry my bot code is having an issue" when removing user data
I'm trying to reset the user session by sending the activity like so:
switch (activity.GetActivityType())
{
case ActivityTypes.Message:
await Conversation.SendAsync(activity, () => chain);
break;
case ActivityTypes.ConversationUpdate:
break;
case ActivityTypes.ContactRelationUpdate:
break;
case ActivityTypes.Typing:
break;
case ActivityTypes.DeleteUserData:
activity.GetStateClient().BotState.DeleteStateForUser(activity.ChannelId, activity.From.Id);
await Conversation.SendAsync(activity, () => chain);
break;
}
This does reset the user session but the chat bot gives a "sorry my bot code is having an issue" after.
However, when i attach my debugger, no error message is given, and the chatbot does not post the message.
Can you enable "break on thrown exceptions" and disable "just my code" and obtain a call stack for the thrown exception?
Closing this because of inactivity. Feel free to follow up or open another issue if you couldn't resolve the problem.