botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

"sorry my bot code is having an issue" when removing user data

Open Oaden opened this issue 10 years ago • 2 comments

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.

Oaden avatar Sep 30 '16 10:09 Oaden

Can you enable "break on thrown exceptions" and disable "just my code" and obtain a call stack for the thrown exception?

willportnoy avatar Sep 30 '16 18:09 willportnoy

Closing this because of inactivity. Feel free to follow up or open another issue if you couldn't resolve the problem.

msft-shahins avatar Oct 12 '16 20:10 msft-shahins