在运行GET查询时
https://<mybot>-dev-web.azurewebsites.net/api/messages
要么
http://localhost:3978/api/messages
我看到了:
{
"code": "ResourceNotFound",
"message": "/api/messages; caused by Error: ENOENT: no such file or directory, stat 'D:\\home\\site\\wwwroot\\src\\api\\messages'"
}
该机器人已部署,并且可以正常工作。在使用localhost的仿真器中,机器人可以正常工作并进行了预期的对话。
当我与部署的机器人进行对话时,我可以连接并由机器人发起对话,但会出错。请求是直接上线:
https://directline.botframework.com/v3/directline/conversations/L6QlXXXXXXXXXXcF4oe4-j/activities
带有有效载荷
{
"text":"start a new quote",
"textFormat":"plain",
"type":"message",
"channelData":{
"clientActivityID":"15828426409370.peq9o6sa7me"
},
"channelId":"webchat",
"from":{"id":"r_zm9bajki87","role":"user"},
"locale":"en-US",
"timestamp":"XXXX"
}
响应为:
{
"id": "L6QlV72c1dxEdT1JcF4oe4-j|0000001"
}
我认为我的机器人通信方式可能不正确,但是几乎所有内容都是默认设置。我试图更新web.config文件,因为api / messages的路径似乎不正确,但是我不确定它应该是什么。谢谢!