错误将此消息发送到您的机器人:禁止使用HTTP状态代码。 Azure Portal并在Web应用程序机器人服务中获得不信任的域问题

发布于 2025-01-28 17:41:58 字数 633 浏览 3 评论 0原文

我在部署代码后在Web聊天频道中的错误(IMG:1)下降,直到最后一周都可以正常工作,但突然在Web App Bot Service浏览器控制台中获得了不信任的Origin错误,并且无法连接到Bot使用“网络聊天中的测试”功能。我已经附加了下面的不信任的原点错误屏幕截图(IMG:2)。我将.bot文件用作使用开发和生产的管理资源(Micorsoft Appid,App Paswword,端点)。我尝试将.bot文件迁移到AppSettings((MicorSoft Appid,App paswword,端点)作为管理资源,但仍会遇到相同的错误。请帮助解决该错误的分辨率。IMG

:1

IMG:2

Im getting below error(Img:1) in Web Chat channel after deploying the code, upto lastweek it is working fine but suddenly im getting the untrusted Origin error in browser console of Web App bot service and couldn't able to connect to the bot using "Test in Web Chat" feature. I have attached the Untrusted Origin error screen shot(Img:2) below. I am using .bot file as managing resource with Development and Production( Micorsoft AppId , App paswword, endpoint). I tried migrating .bot file to Appsettings(( Micorsoft AppId , App paswword, endpoint) as the managing resource but still getting the same error. Please help with the resolution for the error.

Img:1
enter image description here

Img:2
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

べ繥欢鉨o。 2025-02-04 17:41:58

这是一些资源需要检查。

请检查以下几点:

  1. 检查门户设置中指定的消息端点是否正确。请检查在URL端(../api/messages)处的路径,
  2. 验证机器人配置设置,以检查是否使用任何不正确的应用程序ID和密码和
  3. Bot Framework Portal在设置上为Bot的设置页面上指定的消息端点不是从HTTPS开始,也不是不受BOT框架信任的信任。您的机器人必须具有有效的链条信任证书。

替代选项:

  1. 在'tls/ssl设置'下 - >将“仅HTTPS”设置为“ ON”。

有关类似问题的参考,请通过以下链接:

有一个错误,将此消息发送到您的bot-网络聊天中的测试

Here are the some of the resources need to check.

Kindly check the below points:

  1. Check whether the messaging endpoint specified in settings in portal is correct or not. Please check with the path at the URL end (../api/messages)
  2. Verify the bot configuration settings to check with whether using any incorrect APP ID and Password
  3. The Messaging endpoint specified on the Settings page for your bot in the Bot Framework Portal does not begin with https or is not trusted by the Bot Framework. Your bot must have a valid, chain-trusted certificate.

Alternate Options:

  1. Under 'TLS/SSL settings' --> set 'HTTPS Only' to 'On'.

For reference on similar issue kindly go through the below link:

There was an error sending this message to your bot - Test in Web Chat

难如初 2025-02-04 17:41:58

我相信您在直线渠道中启用了增强身份验证,并且没有域设置为可信的来源。

< -Service-4.0#Security-Consississ“ RER =“ Nofollow Noreferrer”> https://learn.microsoft.com/en-us/azure/bot-service/bot-service/rest-rest-rest-api/bot-framework-framework-ramework-ramework-rest-direct-direct-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-ine 3-0授权?view = azure-bot-service-4.0#security-considestions

I believe you have Enhanced Authentication enabled in the Directline channel and don't have the domain setup as a trusted origin.

https://learn.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-authentication?view=azure-bot-service-4.0#security-considerations

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文