首页 > 解决方案 > STATUS:INVALID_ARGUMENT and ERROR: The API Key and the authentication credential are from different projects

问题描述

在步骤 3 中上传照片的元数据时,在谷歌街景中出现错误:

{
  "error": {
    "status": "INVALID_ARGUMENT", 
    "message": "The API Key and the authentication credential are from different projects.", 
    "code": 400, 
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.Help", 
        "links": [
          {
            "url": "https://console.developers.google.com/project/3624944027/apiui/credential", 
            "description": "Google developer console API key"
          }
        ]
      }
    ]
  }
}

标签: google-streetview-publish

解决方案


这意味着 API 密钥和身份验证凭证来自不同的项目。尝试使用与您的凭据来自同一项目的 API 密钥。您甚至可以摆脱 API 密钥,因为仅凭凭据就可以解决问题。


推荐阅读