Suddenly getting 403 from YouTube data-API

孤人 提交于 2020-02-06 08:17:26

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/59248495/suddenly-getting-403-from-youtube-data-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!