Can't create replies to some existing youtube

2019-08-13 15:18发布

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" } }

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." } }

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.

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?

1条回答
别忘想泡老子
2楼-- · 2019-08-13 15:41

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.

查看更多
登录 后发表回答