将此消息发送到您的漫游器时出错:HTTP状态代码被禁止

时间:2019-02-11 07:41:11

标签: botframework azure-bot-service

问题:当我尝试使用WEB嵌入式代码IFrame访问漫游器时。

示例嵌入式IFrame:<iframe style='min-width: 400px; width: 100%; min-height: 500px;' src="https://webchat.botframework.com/embed/intermediatorbotsample2019?t=ew0KICAiYWxnIjogIlJTMjU2IiwNCiAgImtpZCI6ICJSNHZYc3c3bGFUbjFaa25SUUJ1VlBGWno3WE0iLA0KICAieDV0IjogIlI0dlhzdzdsYVRuMVprblJRQnVWUEZaejdYTSIsDQogICJ0eXAiOiAiSldUIg0KfQ.ew0KICAiYm90IjogImludGVybWVkaWF0b3Jib3RzYW1wbGUyMDE5IiwNCiAgInNpdGUiOiAiR2hxaDZibGtvd0kiLA0KICAiY29udiI6ICI5SzhDbmxFMHA1bDZJVEphYVA4Sk1JIiwNCiAgIm9yaWdpbiI6IFsNCiAgICAiaHR0cHM6Ly9iNDM5YzRjMi5uZ3Jvay5pbyIsDQogICAgImh0dHA6Ly9iNDM5YzRjMi5uZ3Jvay5pbyIsDQogICAgImh0dHBzOi8vd3d3Lnczc2Nob29scy5jb20iDQogIF0sDQogICJuYmYiOiAxNTQ5ODY5NDUyLA0KICAiZXhwIjogMTU0OTg3MzA1MiwNCiAgImlzcyI6ICJodHRwczovL3dlYmNoYXQuYm90ZnJhbWV3b3JrLmNvbS8iLA0KICAiYXVkIjogImh0dHBzOi8vd2ViY2hhdC5ib3RmcmFtZXdvcmsuY29tLyINCn0.h4iKrAZnZ3xN0czwtz09Qg8KnqkJpRLZ17Lxcp7oTuUMvhXiBc0tgDOBDQOIQgBPqe3xGWPiDROe3HvcmFS5BXow7KnwqvaLQLOle2SHo_YphJTtnXncHJXta8zmFJY_EPdLHcteUHlO4vjA1JM9WFfVnrPX5C4MxE9Zb-L8WNd0GhG7K4R40MZ7hdUcxaLahrLjog5e0C_FOlf46LP8qWf6LAKoqnqCwhPoPhbRcSh7sWUSW7pDbj-CPSiy6c7d0l9lBi-J8nWksof_6UYD9qxh4D7c4dc_y12zGh0yHwoQrteOf_T9JuQ31PkzRQdI94iep0AlB7c-NsNAkJylnw"></iframe>

Microsoft Azure机器人通道发出错误消息:禁止使用HTTP状态代码。 (image) Log's Azure channel show error issue

  • 使用漫游器模拟器(已部署漫游器)在本地成功测试了漫游器 api端点)
  • 使用bot Api和密码在模拟器上成功测试

1 个答案:

答案 0 :(得分:0)

我不确定您到那里去了什么,它看起来像是令牌。网络聊天iFrame使用Azure的通道配置页面上给出的机密:

for i in range (0,len(arr)):
    print (arr[i], end = "")
    #                ^^^

您拥有的那部分

    <iframe src='https://webchat.botframework.com/embed/JJQnANodeBot?s=YOUR_SECRET_HERE'  
style='min-width: 400px; width: 100%; min-height: 500px;'></iframe>

需要阅读:

intermediatorbotsample2019?t=