Can't create replies to some existing youtube comments

戏子无情 提交于 2019-12-24 11:34:10

问题


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:


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.



来源:https://stackoverflow.com/questions/32220648/cant-create-replies-to-some-existing-youtube-comments

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!