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

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

问题描述

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

然而,视频在标准的 50 次上传后就被这条消息拒绝了:

<块引用>

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

以下是成功发布的视频的示例.

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

解决方案

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

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

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

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

<块引用>

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

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.

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

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.

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 The user has exceeded the number of videos they may upload.

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 read operations that each retrieve two resource parts.
  • 10,000 write operations and 90,000 additional read operations that each retrieve two resource parts.
  • 400 video uploads, 1500 write operations, and 50,000 read operations that each retrieve two resource parts.

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.

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天全站免登陆