本文介绍了超出 YouTube 配额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是开发人员,我想使用 YouTube Data API v3 上传视频,但它总是返回错误代码超出配额".我从来没有成功上传视频所以很奇怪...

I'm developer and I want to upload a video using the YouTube Data API v3, but it always return the error code "quotas exceeded". I never succeeded upload a video so it's strange...

您是否有针对此问题的解决方案或支持地址邮件联系以解决问题?

Do you have a solution for this problem or support address mail to contact in order to solve the problem ?

我将带有附件的视频发送到 API:

I send to the API that video with attachment:

curl --request POST
     --url 'https://www.googleapis.com/upload/youtube/v3/videos?part=snippet%2Cstatus'
     --header 'authorization: Bearer MyAccessToken'
     --header 'cache-control: no-cache'
     --header 'content-type: application/octet-stream'

这里是错误:

{
      "error": {
            "errors": [{
                    "domain": "youtube.quota",
                    "reason": "quotaExceeded",
                    "message": "The request cannot be completed because you have exceeded your <a href="/youtube/v3/getting-started#quota">quota</a>."
            }],
      "code": 403,
      "message": "The request cannot be completed because you have exceeded your <a href="/youtube/v3/getting-started#quota">quota</a>."
     }
}

推荐答案

我遇到了同样的问题,发现每日查询"限制设置为 0.我创建了一个新项目,有一个新的密钥.新项目每天的配额为 10k.问题解决了.

I had the same issue and found out that the "Queries per day" limit was set to 0. I created a new project, with a new key. The new project got a quotum of 10k per day. Problem solved.

这篇关于超出 YouTube 配额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 11:02