Azure Bot服务REST API不接受用于回复bot服务消息的活动ID [英] Azure Bot Service REST API does not accept the activity ID for replying to a bot service message

查看:62
本文介绍了Azure Bot服务REST API不接受用于回复bot服务消息的活动ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用azure bot服务创建机器人时,使用REST API,如下文所示:


https://docs.microsoft.com/en- us / azure / bot-service / rest-api / bot-framework-rest-connector-send-and-receive-messages?view = azure-bot-service-4.0



并使用创建的网络聊天频道测试进行测试



来自microsoft的请求显示活动ID为2zBPHBTUu00LrGtWTLS63-c | 0000000,但在发送响应时,即使活动ID是URL编码,它也不会通过在路径错误中提供非法字符来接收相同的活动ID。



java.lang.IllegalArgumentException:非法字符索引108处的路径:https://webchat.botframework.com/v3/conversations/2zBPHBTUu00LrGtWTLS63-c/activities/2zBPHBTUu00LrGtWTLS63-c|0000000

When a bot is created using azure bot service and REST API are used as given in below document

https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-send-and-receive-messages?view=azure-bot-service-4.0

and tested with the created channel test with web chat

A request from microsoft comes up with activity id as 2zBPHBTUu00LrGtWTLS63-c|0000000 but when sending the response, it does not receive the same activity ID by giving the Illegal character in path error even if the activity ID is URL encoded.

java.lang.IllegalArgumentException: Illegal character in path at index 108: https://webchat.botframework.com/v3/conversations/2zBPHBTUu00LrGtWTLS63-c/activities/2zBPHBTUu00LrGtWTLS63-c|0000000

推荐答案

您好,

根据您的请求中提到的说明和活动ID,它看起来像收到的活动ID可能不正确。是否可以重新使用新的网络聊天频道?

Based on the description and activity ID mentioned in your request it looks like the activity id received might be incorrect. Is it possible to retry with a new channel for web chat?

如果您想使用当前频道,我们建议您在Azure门户网站的帮助+支持刀片中提出支持问题,并提供详细信息错误。 

If you want to use the current channel we would recommend raising a support issue from Help+Support blade in Azure portal with details of the error. 

如果您没有有效的支持计划,我们可以为您提供一次性订阅请求。

If you do not have a valid support plan we can help you with a one time request for your subscription.


这篇关于Azure Bot服务REST API不接受用于回复bot服务消息的活动ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆