将Azure bot部署到Azure时出现502错误的网关

问题描述 投票:0回答:1

我正在尝试发布一个基本的echo bot以使其变蓝,但是在部署时遇到了502错误的网关。如果我在本地运行该机器人,则可以正常运行。

机器人代码如下,来自devoloper社区。这是一个连接到alexa的示例echo bot:

https://github.com/BotBuilderCommunity/botbuilder-community-dotnet/tree/develop/samples/Alexa%20Adapter%20Sample

我得到的错误如下:

enter image description here

这是使用机器人模拟器时得到的:

enter image description here

虽然这是我在网络聊天频道中遇到的错误:enter image description here

azure botframework alexa-skills-kit
1个回答
0
投票

似乎您没有安装和配置ngrok。您需要它来允许仿真器以天蓝色的方式接受来自远程bot的远程调用

检查这些:https://github.com/Microsoft/BotFramework-Emulator/wiki/Tunneling-(ngrok)https://blog.botframework.com/2017/10/19/debug-channel-locally-using-ngrok/

© www.soinside.com 2019 - 2024. All rights reserved.