我们最近启用了YouTube数据API,用于读取用户的YouTube频道ID。在我们创建的测试项目中,一切正常。
现在,我们请求访问生产项目中的YouTube范围,并获得Google的批准。
但是,当我们尝试使用该项目时,出现此错误。
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. YouTube Data API has not been used in project 123 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=123 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=123" } ], "code": 403, "message": "Access Not Configured. YouTube Data API has not been used in project 123 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=123 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
所有堆栈溢出的答案都建议创建一个新项目并使用它。但是我们不能禁用现有项目,因为它正在生产中并且正在用于Google登录。
我们尝试创建一个新项目并使用现有的SHA1,但Google不允许在多个项目中使用相同的SHA1。有没有针对这种情况的解决方法?
我在Youtube Bug Tracker上解决了与之相关的问题。答复在这里:https://stackoverflow.com/a/62011661/1778128