【发布时间】: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