【问题标题】:Unable to run local bot on Bot Framework emulator无法在 Bot Framework 模拟器上运行本地机器人
【发布时间】:2020-07-04 10:12:12
【问题描述】:

我不熟悉使用 Bot Framework Emulator 并尝试运行 Echo bot。我在本地成功运行了机器人。但是当我尝试使用 Bot Framework Emulator 进行测试时。它似乎没有在监听我输入的主机和端口。任何的想法?谢谢≥ 在mac上运行这个。 视觉工作室 2019 模拟器:4.9.0-140906

[17:55:35]Connecting to bot on http://localhost:3978/api/messages
[17:55:35]Emulator listening on http://[::]:52655
[17:55:35]ngrok not configured (only needed when connecting to remotely hosted bots)
[17:55:35]Connecting to bots hosted remotely
[17:55:35]Edit ngrok settings
[17:55:35]Cannot post activity. Unauthorized.

【问题讨论】:

  • 如下所述,您需要仔细检查您是否在 appsettings.json 中添加了 appID 和密码。如果是,那么当您选择“Open Bot”选项以及 Bot URL 时,您还需要在模拟器设置中添加应用程序 ID 和密码。要在本地测试机器人,您可以在两个地方都将凭据留空。参考docs.microsoft.com/en-us/azure/bot-service/…

标签: macos botframework emulation


【解决方案1】:

您是否在模拟器设置中为 Microsoft App IDMicrosoft App password 注册了值?此设置是可选的,但是如果您在 appsettings.json 中配置它们,您还需要在模拟器中提供相应的值。

但是,对于本地测试,您可以在 appsettings.json 中将 MicrosoftAppIdMicrosoftAppPassword 留空。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-05-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-23
    • 2016-10-03
    相关资源
    最近更新 更多