【问题标题】:YouTube LiveStream API accessNotConfigured errorYouTube LiveStream API accessNotConfigured 错误
【发布时间】:2020-01-07 17:54:02
【问题描述】:

我正在构建一个用于将视频流式传输到 YouTube 的 Swift 应用程序,但我无法通过 liveBroadcast-insertion 步骤。该应用程序打印出它发出的每个请求的 cURL 表示;这是插入的:

curl "https://www.googleapis.com/youtube/v3/liveBroadcasts?part=id%252CcontentDetails%252Csnippet%252Cstatus&key=<app-key>" \
    --request POST \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json'\
    --data '{"kind":"youtube#liveBroadcast","snippet":{"title":"Simulator","scheduledStartTime":"2019-09-04T18:18:50Z"},"status":{"privacyStatus":"public"}}'

这给了我以下错误响应:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Project <redacted> is not found and cannot be used for API calls. If it is recently created, enable YouTube Data API by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=40586258927 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=<redacted>"
   }
  ],
  "code": 403,
  "message": "Project <redacted> is not found and cannot be used for API calls. If it is recently created, enable YouTube Data API by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=<Foo> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
 }
}

我不确定 Project &lt;redacted&gt; 的名称从何而来,因为这与我登录的项目不匹配。

我检查了以下 SO 问题,但无济于事:

【问题讨论】:

    标签: youtube youtube-api youtube-data-api youtube-livestreaming-api


    【解决方案1】:

    我也开始遇到同样的错误,同样的问题,没有解释,和你差不多。

    【讨论】:

    • 但它以前对你有用吗?我从来没有让它工作。
    • 昨天刚开始工作。我们的问题是,创建相应 Developers Console 项目的 GSuite 用户帐户不再有权使用 Google Cloud Console。在我们为我们的域重新启用该用户在 GSuite 管理控制台中使用 Cloud Console 的功能后,它又开始工作了。希望有帮助!
    猜你喜欢
    • 2013-06-28
    • 2013-08-14
    • 2014-04-30
    • 2015-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-16
    • 2019-08-31
    • 2019-12-13
    相关资源
    最近更新 更多