Botframework api/消息上已部署的Bot框架Bot 404错误
当我在上运行GET查询时Botframework api/消息上已部署的Bot框架Bot 404错误,botframework,azure-web-app-service,qnamaker,Botframework,Azure Web App Service,Qnamaker,当我在上运行GET查询时 https://-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
https://-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'"
}
已部署bot,否则将正常工作。在使用localhost的仿真器中,bot按预期工作并进行对话
当我与部署的bot进行对话时,我可以连接,bot启动对话,但会出错。请求发送到directline:
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/消息的路径似乎不正确,但我不确定应该是什么。谢谢 你指的是哪份文件?bot在本地工作正常,但部署到azure后无法工作?您的bot消息传递端点应采用以下格式https://.azurewebsites.net/api/messages. 在Azure上的“Web聊天测试”中,您的机器人是否按预期工作?url似乎有误。您参考了哪个文档?bot在本地工作正常,但部署到azure后无法工作?您的bot消息传递端点应采用以下格式https://.azurewebsites.net/api/messages. 在Azure上的“Web聊天测试”中,您的机器人是否按预期工作?似乎url错误。