本文介绍了YouTube 数据 API:无法完成请求,因为您已超出配额 INSUFFICIENT_TOKENS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题发生在我使用 Python 程序将视频上​​传到 YouTube 时.在发生这种情况之前,我有很多天没有使用它来上传,所以它不应该超过配额.我试了很多次,还是一样的错误.

The problem occurred when I was using a Python program to upload videos to YouTube. I did not use it to upload for many days before this happened so it should not exceed the quota. I tried many times and it had the same error.

错误如下:

[RequestError] 服务器响应:

[RequestError] Server response:

{
  "error": {
    "code": 403,
    "message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e.",
    "errors": [
      {
        "message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e.",
        "domain": "youtube.quota",
        "reason": "quotaExceeded",
        "debugInfo": "Code: 8; Description: ?metric=youtube.googleapis.com/default&limit=defaultPerDayPerProject&qs_error_code=INSUFFICIENT_TOKENS"
      }
    ]
  }
}

推荐答案

考虑到 DTOS 文档,很可能您已超过 90 天的不活动时间您的 API 凭据:

Taking into account the DTOS docs, it's very likely that you exceeded 90 days of inactivity w.r.t. your API credentials:

不活动

YouTube 保留禁止或限制您访问或使用特定 YouTube API 服务 如果您的 API 项目 已连续 90 天处于非活动状态.例如,YouTube 可以撤销您的 API 凭据,或减少(或消除)您的API 项目针对特定的配额YouTube API 服务.如果您的 API 客户端配额减少或取消,您可能会重新申请配额或配额延期,YouTube 将根据 YouTube 对您对 YouTube API 服务.

YouTube reserves the right to disable or curtail your access to, or use of, specific YouTube API Services if your API Project has been inactive for 90 consecutive days. For example, YouTube could revoke your API Credentials, or reduce (or eliminate) your API Project's quotas for specific YouTube API Services. If your API Client's quota is reduced or eliminated, you may reapply for quota or a quota extension, and YouTube will review that application based on YouTube’s determination of your expected use of the YouTube API Services.

您可以按照上述官方建议申请配额延期.要获得配额扩展,您必须直接联系 Google.您必须填写此表单.而不是等待回复——,根据本论坛用户的经验,短期内不会到.

You may follow the official recommendations stated above by applying for a quota extension. For obtaining a quota extension you have to address Google directly. There's this form that you'll have to fill in. Than wait for response -- which, according to the experience of users of this forum, doesn't arrive shortly.

其他选项是从 Google 的开发者控制台中丢弃(删除)当前应用程序并创建一个新的将分配新的每日配额量(通常为 10,000 个单位).

Other option would be to just discard (delete) the current app from Google's developers console and create a new one that will have assigned a new daily quota amount (of usually 10,000 units).

这篇关于YouTube 数据 API:无法完成请求,因为您已超出配额 INSUFFICIENT_TOKENS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 11:35
查看更多