【发布时间】:2019-06-22 09:07:33
【问题描述】:
我使用的api密钥被给我的人删除了,没什么大不了的,我可以自己生成一个。
我创建了项目,激活了对 YouTube api 的访问权限,创建了我的密钥并尝试在我的项目中使用它。
起初我收到消息,密钥可能是坏的或不存在。几分钟后,密钥似乎已注册,但现在我收到一条不同的错误消息:
domain: 'usageLimits',
reason: 'accessNotConfigured',
message: 'Access Not Configured. YouTube Data API has not been used in project 'my Project id' before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project='my Project id' then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.',
当我打开给定的 URL 时,我只是得到概述,甚至提到了 API 已激活: 活动状态 活动
我尝试删除我的密钥,再次停用 API,重新激活它,然后创建一个新密钥。我将我的域添加到受信任的域中。 尝试了对调用和 API 的不同限制,甚至取消了所有限制。
什么可能导致问题?
【问题讨论】: