google-streetview-publish - 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"
}
]
}
]
}
}
解决方案
这意味着 API 密钥和身份验证凭证来自不同的项目。尝试使用与您的凭据来自同一项目的 API 密钥。您甚至可以摆脱 API 密钥,因为仅凭凭据就可以解决问题。
推荐阅读
- python - 在虚拟环境中使用 Apt-Get Python 包
- java - Java 正则表达式和模式
- codenameone - 我可以在从侧面菜单调用另一个表单(第二个表单)之前调用当前表单(第一个表单)上的方法
- javascript - 这样的逻辑可以写成单行吗?
- javascript - scrollTop 到 div 的全高
- php - Yii2 检查迁移中是否存在表
- c++ - 按位代码解释
- javascript - Firestore 安全规则 - 查询集合时检查文档字段
- javascript - localhost - Mozilla 无法加载 js 文件
- java - 在我的情况下,同步关键字不能保证线程安全