有时我的机器人无法继续运行。一张卡继续循环。(直线特定问题并且在 MS-Teams 中没有上升)

Some times my bot can't flow continue. one card continues looping.(directline specific problem and not rise in MS-Teams)

有些时间流无法继续。如果我重新加载然后工作正常。 Directline 中的某些用户会出现此类问题。 该问题未在任何用户的 MS-Teams 中解决。

当我发送带有英雄卡片按钮的消息时,该英雄卡片继续循环播放。它不会一直引发问题。仅提高部分用户仅 Directline 特定。

我在 NodeJS 中使用了机器人框架 v4。关于为什么会出现这种问题的任何想法?

在机器人流程中,我有 2 张英雄卡, 我寄了一张卡片然后我写这个 return Dialog.EndOfTurn; 所以我得到了用户输入。在下一组中,我发送了第二张牌。 但是第二步有时不流畅。直接联系一些随机用户。

此处代码:

let choiceButtons = [];
questionObject.answers.forEach(answerItem => {
    choiceButtons.push({
        type: ActionTypes.ImBack,
        title: answerItem.answer,
        value: answerItem.answer
    });
});

// construct hero card.
const card = CardFactory.heroCard('', undefined, choiceButtons, {text: ''});

let reply = {type: ActivityTypes.Message};
// add card to Activity.
reply.attachments = [card];
reply.text = questionObject.question.toString();

await step.context.sendActivity(reply);
return Dialog.EndOfTurn;

问题已通过更新 Microsoft Bot Framework 所有包更新到 4.7 得到解决, 包裹看起来像:

    "botbuilder": "4.7.2",
    "botbuilder-ai": "4.7.2",
    "botbuilder-azure": "4.7.2",
    "botbuilder-dialogs": "4.7.2",
    "botframework-config": "4.7.2",
    "botframework-connector": "4.7.2",