无法创建对某些现有 YouTube 评论的回复
Can't create replies to some existing youtube comments
我有一个软件,可以让你对你的 YouTube 视频的评论创建回复。因此我使用 youtube API v3 comments.insert 方法。
POST https://www.googleapis.com/youtube/v3/comments?part=id%2Csnippet&access_token=[access_token]
{
"snippet": {
"parentId": "parentId",
"textOriginal": "test message"
}
}
大多数时候请求都是成功的。但是对于某些评论,我无法以这种方式创建回复。 API 总是 returns:
{
"error": {
"errors": [
{
"domain": "youtube.comment",
"reason": "processingFailure",
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid. Check the structure of the <code>comment</code> resource in the request body to ensure that it is valid.",
"locationType": "other",
"location": "body"
}
],
"code": 400,
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid. Check the structure of the <code>comment</code> resource in the request body to ensure that it is valid."
}
}
我使用的是有效的访问令牌,而且 parentId 也是有效的,因为我可以通过 API 检索它。
我查看了成功和失败的请求,但没有发现任何区别。所以我假设请求输入不是错误消息中提到的无效。
在我看来,这个错误不是暂时性错误,因为同样的请求在几天后仍然失败。
我也尝试通过 API 资源管理器创建对此类评论的回复,但结果是一样的。
有没有人遇到同样的问题或者我做错了什么?
我去视频直接看评论的时候,ID为z13tjxdqnuygy1lga04cilcqxqipg1zbtbs
的评论下面有一个"reply"选项,而ID为z13rgftjgw3bulyou04ccfnbjofztxg54yo0k
的评论没有.似乎用户通过他们的 Google+ 页面发布了评论并禁止回复他们的帖子。
我有一个软件,可以让你对你的 YouTube 视频的评论创建回复。因此我使用 youtube API v3 comments.insert 方法。
POST https://www.googleapis.com/youtube/v3/comments?part=id%2Csnippet&access_token=[access_token]
{
"snippet": {
"parentId": "parentId",
"textOriginal": "test message"
}
}
大多数时候请求都是成功的。但是对于某些评论,我无法以这种方式创建回复。 API 总是 returns:
{
"error": {
"errors": [
{
"domain": "youtube.comment",
"reason": "processingFailure",
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid. Check the structure of the <code>comment</code> resource in the request body to ensure that it is valid.",
"locationType": "other",
"location": "body"
}
],
"code": 400,
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid. Check the structure of the <code>comment</code> resource in the request body to ensure that it is valid."
}
}
我使用的是有效的访问令牌,而且 parentId 也是有效的,因为我可以通过 API 检索它。 我查看了成功和失败的请求,但没有发现任何区别。所以我假设请求输入不是错误消息中提到的无效。 在我看来,这个错误不是暂时性错误,因为同样的请求在几天后仍然失败。
我也尝试通过 API 资源管理器创建对此类评论的回复,但结果是一样的。
有没有人遇到同样的问题或者我做错了什么?
我去视频直接看评论的时候,ID为z13tjxdqnuygy1lga04cilcqxqipg1zbtbs
的评论下面有一个"reply"选项,而ID为z13rgftjgw3bulyou04ccfnbjofztxg54yo0k
的评论没有.似乎用户通过他们的 Google+ 页面发布了评论并禁止回复他们的帖子。