Bot 框架:“抱歉,我的机器人代码有问题”。修复了错误,但如何重新开始对话?

Bot framework: “Sorry, my bot code is having an issue”. Fixed bug but how to restart conversation?

我在 Azure 上使用 Microsoft Bot Framework 运行 创建了一个简单的 Bot,它在所有渠道上都运行良好。直到昨天,当用户选择了一个特定的未经测试的选项时,它停止在 Facebook Messenger 上工作。

这些是在选择流氓选项时执行的行:

string replyText = "I am not yet ready to answer this question. Please choose another option.";

            switch (appointmentBookType){
                case Option1:
                    //Call Option1 Dialog.
                    break;
                case Option2:
                    //Call Option2 Dialog.
                    break;

我不断收到 "Sorry, my bot code is having an issue" 作为对我输入的任何内容的回应。

这是我在 facebook Messenger 的 Bot Framework 开发人员门户中看到的错误: "There was an error sending this message to your bot: HTTP status code InternalServerError"

我只使用一些 HeroCards 的对话。 我不使用 LUIS。

我已经通过处理这个以前未处理的情况修复了错误。 有没有办法在修复错误后重新开始对话?

经过一番搜索,终于成功了:https://docs.botframework.com/en-us/technical-faq/#my-bot-is-stuck--how-can-i-reset-the-conversation