【问题标题】:YouTube API - setModerationStatus to heldForReview not workingYouTube API - setModerationStatus toheldForReview 不起作用
【发布时间】:2021-12-30 02:18:39
【问题描述】:

在过去的几个小时里我已经尝试过几次来处理这个问题,但我认为这与 YouTube Api 或其他一些限制有关。

我目前正在通过 YT API 审核多个 yt 频道的 cmets 部分,如果恶意 cmets 符合特定条件(诈骗/垃圾邮件类型的 cmets),则将它们设置为“heldForReview”状态

几个小时前我一直收到以下错误:

{
  "error": {
    "code": 400,
    "message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the request's input is invalid.",
    "errors": [
      {
        "message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the request's input is invalid.",
        "domain": "youtube.comment",
        "reason": "processingFailure",
        "location": "id",
        "locationType": "parameter"
      }
    ]
  }
}

我的结果没有任何改变,我想知道 API 是否存在问题,或者我受到了任何限制 没有任何迹象表明我的帐户/项目有任何限制,所以我怀疑不是我。

我想指定我的 api 配额为 500k,但没有达到。即使现在重置配额后,我仍然不断收到错误。

当我尝试使用 API 开发者 (https://developers.google.com/youtube/v3/docs/comments/setModerationStatus) 时也是如此

过去我确实遇到过这种错误,但请求已被处理,并且 cmets 处于“heldForMorderation”状态。

我每次调用处理大量 80 cmets。

【问题讨论】:

    标签: youtube-api youtube-data-api google-apis-explorer


    【解决方案1】:

    我编写的自定义垃圾邮件过滤器遇到了同样的问题,并且还观察到隐藏/删除 cmets 的功能在我也使用的商业产品 (Agorapulse) 中被破坏。

    setmoderationstatus、markasspam 或 delete 都不起作用,基本上没有办法自动删除垃圾邮件 cmets。 (这是我频道的一个大问题)

    基本上,API 方面似乎发生了一些变化/损坏,因为即使直接从文档网站运行命令也不会成功。 (直到大约 48 小时前一切正常)

    【讨论】:

      【解决方案2】:

      我确认之前分享的内容。 我们在 youtube#comment 域上使用 markAsSpam、setModerationStatus 和 delete 时遇到了一些困难。

      • markAsSpam 系统地返回 204,但似乎什么也没做
      • 与带有 setModerationStatus 端点的@YT Guard 出现相同的错误(100% 错误)
      • 与删除端点相同

      我补充说,我无法再使用错误的评论 ID 生成 404。 我们从 11 月 19 日开始出现此错误。 我们的调查暂时没有发现任何信息,我们使用 HTTP API 请求(邮递员)和参考文档中提供的在线表格“试用此 API”进行重现。

      【讨论】:

        猜你喜欢
        • 2012-10-06
        • 2018-08-18
        • 1970-01-01
        • 1970-01-01
        • 2013-08-16
        • 2015-01-17
        • 2013-02-09
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多