Microsoft Azure Bot框架模拟器不发送消息

时间:2018-05-16 19:48:45

标签: azure azure-machine-learning-studio azure-bot-service

在我的Windows 10上,我从Microsoft Azure Bot Framework Emulator安装了here(我曾使用Microsoft文章提供的GitHub链接中的botframework-emulator-setup-4.0.15-alpha.exe。)

但是当我运行模拟器时,配置一个机器人并发送一条短信,上面写着couldn't send(如下面的快照3所示:

第1步:安装模拟器 enter image description here 第2步:创建一个新的bot配置 enter image description here 第3步:发送消息 enter image description here

2 个答案:

答案 0 :(得分:0)

安装ngrok隧道。 https://github.com/microsoft/botframework-emulator/wiki/Tunneling-(ngrok)

安装后重新启动模拟器。

答案 1 :(得分:0)

你需要纠正一些事情:

  1. 将您的消息传递端点网址更改为:http://localhost:PORT_NUMBER/api/messages;其中 PORT_NUMBER 是您的应用将收听的端口号。它应该在您的代码中指定,理想情况下对于大多数机器人开发人员来说,它的值是 3978 3979

  2. 检查 MSA app id MSA app密码字段是否包含代码中的任何值。如果他们的代码中存在ID密码值,那么您的仿真器也应该配置相同的。

相关问题