YouTube 数据 API:无法完成请求,因为您已超出配额,INSUFFICIENT_TOKENS
YouTube Data API: The request cannot be completed because you have exceeded your quota, INSUFFICIENT_TOKENS
问题发生在我使用 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"
}
]
}
}
考虑到 the DTOS docs,您很可能超过 90 天不活动 w.r.t。您的 API 凭据:
Inactivity
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。有 this form 您必须填写。而不是等待响应 -- 根据该论坛用户的经验,响应不会很快到达。
其他选择是从 Google's developers console 中丢弃(删除)当前应用程序并创建一个新的应用程序,该应用程序将分配新的每日配额(通常为 10,000 个单位)。
问题发生在我使用 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"
}
]
}
}
考虑到 the DTOS docs,您很可能超过 90 天不活动 w.r.t。您的 API 凭据:
Inactivity
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。有 this form 您必须填写。而不是等待响应 -- 根据该论坛用户的经验,响应不会很快到达。
其他选择是从 Google's developers console 中丢弃(删除)当前应用程序并创建一个新的应用程序,该应用程序将分配新的每日配额(通常为 10,000 个单位)。