我们已经使用YouTube数据API v3已有一段时间了,但是突然它开始响应403错误,提示需要启用访问权限。

这是错误消息:

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

我们已禁用并重新启用所有api wee使用(youtube-data-api-v3,contacts api,google + api)。我们还尝试了生成新的客户ID和客户 secret 而没有成功。

最后,我们注意到每天的请求配额已设置为0。
这当然是为什么无法向API发出任何请求但无法更改此值的原因所在。

有人遇到过这个问题吗?
我该如何提高配额限制?

最佳答案

有人指出您应该链接到计费帐户,然后可以将限制从零提高到任何数值。

关于YouTube数据API v3每天的查询配额设置为0,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47099012/

10-09 15:41
查看更多