gpt4 book ai didi

youtube-data-api - YouTube 数据 API 返回 "Access Not Configured"错误,尽管它已启用

转载 作者:行者123 更新时间:2023-12-04 08:29:44 24 4
gpt4 key购买 nike

我在内部使用的网络解决方案来检索基于此示例 ( https://developers.google.com/youtube/v3/quickstart/js ) 的 YouTube 视频统计信息,现在无法正常工作。不确定它究竟是什么时候发生的,但它在几个月前就可以使用了。

我现在尝试运行未经编辑的示例代码(当然,除了调整 CLIENT_ID),我得到了完全相同的错误:

{
"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."
}

当我在开发者控制台中检查 YouTube API 时,它显示启用状态,并且与此 API 兼容的凭据包括用于对客户端进行身份验证的 ID。当我重试 API 调用尝试时,我可以看到凭证使用增量的统计信息,这些指标反射(reflect)了请求的数量,并且还显示错误率为 100%。但是控制台中没有关于这些失败尝试的额外信息来帮助调试问题。

我已经删除并重新创建了 API key 和 OAuth key ,但这并没有改变任何东西。

如果在开发者控制台端有关于这些错误的任何额外信息,例如超出客户端报价,我可以看到如何解决这个问题。现在我完全被困住了。

最佳答案

新建项目

奇怪的是,创建一个新项目只会让 API 正常工作!

关于youtube-data-api - YouTube 数据 API 返回 "Access Not Configured"错误,尽管它已启用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55299535/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com