突然从YouTube数据API获取403 [英] Suddenly getting 403 from YouTube data-API

查看:248
本文介绍了突然从YouTube数据API获取403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

向YouTube的数据API发送请求时,我突然收到403错误.

I am suddenly getting a 403 error when sending requests to YouTube's data-API.

这是我在所有请求中出现的错误:

This is the error I am getting in production for all requests:

 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured. YouTube Data API has not been used in project 944988770273 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=944988770273 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
    "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=944988770273"
   }
  ],
  "code": 403,
  "message": "Access Not Configured. YouTube Data API has not been used in project 944988770273 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=944988770273 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
 }
}

我还没有做任何事情来禁用按键,并且仪表板仍然显示项目和按键已启用?

I haven't done anything do disable the keys, and the dashboard still says the project and key is enabled?

推荐答案

这似乎是由于YouTube由于某种原因将我的每日限制设置为0,从而有效地禁止"了当前正在使用的项目.

This seems to be due to YouTube setting my daily limit to 0 for some reason, effectively "banning" the usage on the current project in use.

如果发生这种情况,任何人都会发生错误消息,请记住检查项目的配额.

If this happens error-message happens to anyone, remember to check the quotas for the project.

这篇关于突然从YouTube数据API获取403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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