无法创建对某些现有YouTube评论的回复 [英] Can't create replies to some existing youtube comments

查看:160
本文介绍了无法创建对某些现有YouTube评论的回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个软件,可让您创建对YouTube视频评论的回复.因此,我使用youtube API v3 comments.insert 方法.

I have a software, which allows you to create a reply to a comment on your youtube video. Therefore I use the youtube API v3 comments.insert method.

POST https://www.googleapis.com/youtube/v3/comments?part=id%2Csnippet&access_token=[access_token] { "snippet": { "parentId": "parentId", "textOriginal": "test message" } }

POST https://www.googleapis.com/youtube/v3/comments?part=id%2Csnippet&access_token=[access_token] { "snippet": { "parentId": "parentId", "textOriginal": "test message" } }

大多数情况下,请求成功.但是对于某些评论,我无法以这种方式创建答复. API始终返回:

Most of the time the requests are successful. But for some comments I can't create replies this way. The API always 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." } }

{ "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检索它. 我查看了成功和失败的请求,但没有发现任何区别.因此,我认为错误消息中提到了请求输入不是无效的. 我认为该错误不是暂时性错误,因为几天后相同的请求仍然失败.

I'm using a valid access token and the parentId is valid, too, because I can retrieve it through the API. I took a look at the successful and failing requests, but didn't find any difference. So I assume that the request input isn't invalid as it is mentioned in the error message. In my opinion this error isn't a transient error, because the same requests are still failing after some days.

我还尝试通过API资源管理器针对此类评论创建回复,但结果相同.

I also tried to create a reply on such a comment through the API Explorer but the result was the same.

有人有同样的问题吗?还是我做错了什么?

Does anyone have the same problems or am I doing something wrong?

推荐答案

当我转到视频并直接查看评论时,ID为z13tjxdqnuygy1lga04cilcqxqipg1zbtbs的评论下方带有回复"选项,而评论为ID z13rgftjgw3bulyou04ccfnbjofztxg54yo0k没有.该用户似乎已通过其Google+信息页发表了评论,并禁用了对其信息的回复.

When I go to the video and look at the comments directly, the comment with ID z13tjxdqnuygy1lga04cilcqxqipg1zbtbs has a "reply" option under it, while the comment with ID z13rgftjgw3bulyou04ccfnbjofztxg54yo0k does not. It seems that the user posted the comment via their Google+ page and disabled replies to their posts.

这篇关于无法创建对某些现有YouTube评论的回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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