英文:
Test in Web Chat not working with the app service
问题
我已部署了一个Bot框架聊天机器人作为应用服务。一切都运行正常。我能够使用ngrok连接到Bot框架模拟器。但是,当我尝试在Web Chat选项中进行测试时,什么也不显示。是什么导致了这个问题?我需要在Azure聊天机器人上配置隧道吗?
我已经通过提供所需的值在appsettings.json
中进行了配置。并且我已经使用密钥保险库创建了一个密钥,并将其添加为密码。
部署方法:
创建了一个应用服务,并直接从VS Code部署。
更新:我已经检查了Azure聊天机器人服务上的日志。它显示错误消息为发送此消息到您的机器人时发生错误:HTTP状态代码InternalServerError。
英文:
I've deployed a bot framework chatbot as an app service. Everything is working fine. I was able to connect it bot framework emulator using ngrok. But when I'm trying to use the test in the web chat option it shows nothing. What causing this problem? Do I need to configure tunneling on azure chat bot as well?
I have configured appsettings.json
by providing the required values. And I have created a secret key using key vault and added as the password as well.
Deployment method:
Created an app service and deployed directly from the vs code.
Update: I have checked the logs on the azure bot service.It shows the error as There was an error sending this message to your bot: HTTP status code InternalServerError.
答案1
得分: 1
-
我已经按以下步骤将一个示例的天气机器人部署到Azure。
-
在我的本地系统中,它如下所示。
-
现在,我们需要将机器人从本地部署到Azure门户。为此,请按照以下步骤操作。
-
在左上角-> 单击“发布”并选择如下所示的“管理配置文件”。
- 如下所示选择“添加新的”。
- 单击“创建新资源”,然后单击“下一步”如下。
- 如下所示提供所有的细节,并单击“下一步”。
- 创建管理配置文件后,如下所示选择你在上述步骤中创建的应用程序的名称。
- 选择你创建的应用程序并选择机器人如下,然后单击“发布所选的机器人”。
- 部署机器人应用程序后,导航到你在选定的资源组中部署的机器人应用程序-> 单击“在Web聊天中测试”如下。
英文:
-
I have deployed a sample Weather bot to azure using below steps
-
This worked in my local system as below.
-
Now we need to deploy from the Bot to the Azure portal. To do this, follow these steps:
-
On the left corner -> Click Publish and select manage profile as below.
- Select Add new as below.
- Click on Crate new resource and then click on Next as below.
- Give all the details as below and click on Next.
- After creating the manage profile and select the name of the app which you have created in the above steps as below.
- Select the app you have created and select the bot as below and click on publish selected bots.
- After deploying the Bot App navigate to Bot App which you have deployed in your selected resource Group -> Click on Test in web Chat as below.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论