Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

YouTube Data API videos.insert returns hidden “Video Uploads per day” 429 despite quota headroom

未关闭
#2,753 0 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
python
领域
api

调研方向

从最小的 youtube.videos().insert(...).next_chunk() 上传流程开始,并将其 429 响应与文档中说明的配额来源以及 issue 中列出的 Cloud Quotas 命令进行比较。完成的要求是确认服务端的配额行为,并确定客户端、文档或配额可见性方面一项可执行的变更;未指定任何仓库文件或测试。

由索引模型根据 Issue 内容生成。

描述

priority: p2 type: bug

Summary

Starting around May 24-25, 2026, uploads through the YouTube Data API videos.insert endpoint began failing after a small number of uploads per day with HTTP 429:

{
  "error": {
    "code": 429,
    "message": "Quota exceeded for quota metric 'Video Uploads' and limit 'Video Uploads per day' of service 'youtube.googleapis.com' for consumer 'project_number:REDACTED'.",
    "errors": [
      {
        "message": "Quota exceeded for quota metric 'Video Uploads' and limit 'Video Uploads per day' of service 'youtube.googleapis.com' for consumer 'project_number:REDACTED'.",
        "domain": "global",
        "reason": "rateLimitExceeded"
      }
    ]
  }
}

This appears to be a hidden or newly enforced quota separate from the documented YouTube Data API quota-unit system.

Expected behavior

According to the YouTube Data API quota documentation:

  • Default project quota is 10,000 units/day
  • videos.insert costs 100 units
  • Quota resets at midnight Pacific Time

A default project should therefore support roughly 100 uploads/day, assuming no other significant quota usage.

If there is a separate Video Uploads per day quota, it should be documented and visible in Cloud Console / Cloud Quotas API so developers can monitor it and request increases.

Actual behavior

Uploads fail after roughly 7 uploads/day with:

Quota exceeded for quota metric 'Video Uploads' and limit 'Video Uploads per day'

However:

  • Cloud Console shows YouTube Data API quota usage well below 100%
  • gcloud beta quotas info list --service=youtube.googleapis.com does not expose a Video Uploads per day metric
  • Cloud Quotas API also does not appear to expose this metric
  • Manual uploads through YouTube Studio to the same channel still work

Environment

  • API: YouTube Data API v3
  • Method: videos.insert
  • Library: google-api-python-client
  • Version tested: 2.196.0
  • Upload type: resumable upload
  • Auth scope: https://www.googleapis.com/auth/youtube.upload
  • Project has YouTube Data API enabled
  • OAuth app, project, and channel are unchanged from before the regression

Minimal code shape

media = MediaFileUpload(path, chunksize=-1, resumable=True)

request = youtube.videos().insert(
    part="snippet,status",
    body={
        "snippet": {
            "title": title,
            "description": description,
        },
        "status": {
            "privacyStatus": "private",
        },
    },
    media_body=media,
)

response = None
while response is None:
    status, response = request.next_chunk()

Additional evidence

Multiple developers appear to be reporting the same behavior in the same timeframe: API uploads fail after a small number of videos, while Cloud Console still shows quota headroom and manual YouTube Studio uploads still work.

Related Reddit discussion:

https://old.reddit.com/r/googlecloud/comments/1tm1scx/429_quota_exceeded/

Request

Could you please confirm:

  1. whether Video Uploads per day is a new or newly enforced quota;
  2. where this quota can be viewed, monitored, and increased;
  3. whether the current behavior is intentional;
  4. if intentional, whether the public YouTube Data API quota docs and Cloud Console / Cloud Quotas API can be updated to expose this metric?

I understand this may be a service-side quota issue rather than a google-api-python-client bug, but the client is currently surfacing an undocumented quota error that developers cannot inspect or manage through the usual quota tools.

Sources checked

主要语言
Python
星标
8.9k
派生
2.6k
平均合并
2 天 2 小时
30 天内合并 PR
15

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

googleapis/google-api-python-client 的其他 Issue

查看 googleapis/google-api-python-client 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。