【发布时间】:2020-11-22 10:30:08
【问题描述】:
问题发生在我使用 Python 程序将视频上传到 YouTube 时。在发生这种情况之前,我已经有很多天没有使用它来上传了,所以它不应该超过配额。我试了很多次,还是一样的错误。
以下是错误:
[RequestError] 服务器响应:
{
"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"
}
]
}
}
【问题讨论】:
-
请编辑您的问题并包含您的代码
-
代码很长。与github.com/tokland/youtube-upload的代码相同。
-
请提供stackoverflow.com/help/minimal-reproducible-example 我们需要查看您的代码,而不是使用您的代码链接到另一个站点
标签: youtube-api youtube-data-api quota