在达到 API 配额限制之前,YouTube 视频上传被拒绝 [英] Youtube video uploads rejected before API quota limit reached

查看:17
本文介绍了在达到 API 配额限制之前,YouTube 视频上传被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目的API配额通过申请过程成功增加到4M.已通过 Google 开发者控制台 已启用 API 的配额页面的配额详情确认了这一点.

The API quota for my project was successfully increased to 4M through the application process. This is confirmed in the details for the quota via the Google Developer console quota page for the enabled API.

但是,在标准的 50 次带有此消息的上传后,视频就会被此消息拒绝:

Videos are, however, being rejected with this message after just the standard 50 uploads with this message:

任务 310:上传失败.例外:HttpError 400用户已超过他们可以上传的视频数量."

Task 310: Upload failed. Exception: HttpError 400 "The user has exceeded the number of videos they may upload."

这是一个成功发布的视频示例.

Here is an example of a successfully published video.

数以千计的视频正在排队等候几天前结束的活动.谷歌的几个人一直试图提供帮助,但今天早上我被要求在 Stack Overflow 上发帖.

Thousands of videos are waiting in the queue from an event that finished days ago. Several people from Google have been trying to help but this morning I was asked to post on Stack Overflow.

推荐答案

badRequest (400) uploadLimitExceeded 用户已超过他们可以上传的视频数量.

badRequest (400) uploadLimitExceeded The user has exceeded the number of videos they may upload.

这不是已升级的基于项目的配额.这是基于用户的配额,无法升级.这意味着相关用户已超过当天的上传限制.YouTube API 的配额系统与其他 Google API 略有不同.开发者控制台中列出的只是一般的.您应该检查计算配额使用情况

This isn't a project based quota which would have been upgraded. This is a user based quota which can not be upgraded. It means that the user in question has exceed their upload limit for the day. The YouTube API has a slightly different quota system than other Google APIs. The ones listed in developer console are just the general ones. You should check calculating quota usage

  • 200,000 次读取操作,每个操作检索两个资源部分.
  • 10,000 次写入操作和 90,000 次额外读取操作,每个操作检索两个资源部分.
  • 400 次视频上传、1500 次写入操作和 50,000 次读取操作,每次都检索两个资源部分.

此配额应在美国西海岸时间午夜重置.对我来说,您仅在 50 个视频后就看到了这一点,这听起来很奇怪.我不太确定什么是用户.它可以是 IP 地址或经过身份验证的用户.

This quota should reset at midnight West Coast USA time. It sounds strange to me that you are seeing this after only 50 videos. I am not all that sure what denotes a user; it could be IP address or the authenticated user.

视频:插入
配额影响:调用此方法的配额成本为 1600除了指定的资源部分的成本之外的单位.

Videos: insert
Quota impact: A call to this method has a quota cost of 1600 units in addition to the costs of the specified resource parts.

这篇关于在达到 API 配额限制之前,YouTube 视频上传被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆