Permission_Denied [google云平台]:该API方法需要启用计费功能

问题描述 投票:0回答:1

我正在使用 Google Cloud 平台的视觉 API 请求 API。我正在使用他们提供的 API 密钥 此链接中的身份验证文档。当我将 URL 与 API 密钥一起发布时,我正在使用 API 密钥进行身份验证,以下响应到达。

{
    "error": {
    "code": 403,
    "message": "This API method requires billing to be enabled. Please 
                 enable billing on project santram-194814 by visiting 
                 https://console.developers.google.com/billing/enable?
                 project=[my-project-name] then retry. If you enabled 
                 billing for this project recently, wait a few minutes for 
                 the action to propagate to our systems and retry.",
    "status": "PERMISSION_DENIED",
    "details": [
          {
          "@type": "type.googleapis.com/google.rpc.Help",
          "links": [
                 {
                  "description": "Google developers console billing",
                  "url": 
                 "https://console.developers.google.com/billing/enableproject=[my-project-name]"
      }
    ]
  }
]
  }
}

我交叉检查了控制台的计费面板,它向我显示:

Your payment information could not be processed. Visit the payment overview page to make sure your payment information is up to date and to pay any outstanding charges.

我在我的家用机器上使用相同的示例应用程序它工作正常

但是我在设置另一台机器时遇到了这个错误

google-cloud-platform billing
1个回答
2
投票

查看文档 90 天、300 美元免费试用

当您完成以下操作后,90 天、300 美元的免费试用期将自动开始: 完成您的注册。

要完成免费试用注册,您必须提供信用卡或 用于设置 Cloud Billing 帐户并验证您的其他付款方式 身份

另外,看看错误消息:

无法处理您的付款信息。访问支付 概览页面,以确保您的付款信息是最新的,并且 支付任何未付费用。

要解决您的问题,您应该更新您的付款信息,正如评论部分中@Shibboleet所建议的那样。

此外,90 天、300 美元免费试用 有一些限制,如计划覆盖范围中所述。

© www.soinside.com 2019 - 2024. All rights reserved.