【发布时间】:2022-03-01 01:09:25
【问题描述】:
我创建了一个机器人,通过 GitHub 操作将其部署在 azure 上并在模拟器中进行了测试,一切正常,但是当我尝试连接“Webchat”频道时,我不断收到类似的错误
There was an error sending this message to your bot: HTTP status code GatewayTimeout
There was an error sending this message to your bot: HTTP status code Unauthorized
There was an error sending this message to your bot: HTTP status code BadGateway
但它有点随机变化,我没有改变任何东西。当然,我在配置选项卡中设置了消息传递端点(与我在模拟器中测试的相同,https://appservicename.azurewebsites.net/api/messages)并检查启用流端点。 问题是:我该如何解决这个问题,或者当错误并不总是相同时,我什至如何找到解决方案?
更新更多信息:我用基本代码制作了我的应用程序,我有我的
const adapter = new BotFrameworkAdapter({
appId: process.env.MicrosoftAppId,
appPassword: process.env.MicrosoftAppPassword
});
ID 在 Azure 机器人配置选项卡中获取。 密码在 App Secrets Key Vault 中创建,在 Secrets 下手动创建。
我做错了什么?
【问题讨论】:
-
创建 Azure 机器人资源时,您是将其创建为单租户、多租户还是用户分配的托管标识?
标签: azure azure-pipelines azure-bot-service azureportal