Automl Vision错误401-请求具有无效的身份验证凭据

时间:2020-01-15 17:42:36

标签: authorization google-cloud-automl automl

此主题确实需要帮助。

成功创建了数据集和模型,并对其进行了训练和部署。

我使用REST API选项严格遵循“测试和使用”会话的所有指示。与授权相关的所有工作都已完成,创建了request.json文件,当我通过Windows CMD执行curl请求时,正如显示的方向一样,我总是遇到相同的错误并返回:

{
  "error": {
    "code": 401,
    "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
    "status": "UNAUTHENTICATED"
  }
}

curl: (6) Could not resolve host: \

查看所有内容:

已选择项目 相关计费已启用 还启用了API,即Cloud Vision API Gcloud已成功安装到Windows 服务帐户已创建,密钥文件已生成并下载 设置了环境变量GOOGLE_APPLICATION_CREDENTIALS和PROJECT_ID 最后,授予服务帐户和用户帐户编辑automl角色

我想念什么?

谢谢

0 个答案:

没有答案