小编Ral*_*ova的帖子

Google Cloud vision API:"请求的身份验证范围不足."

嗨,我正在尝试使用谷歌的云视觉API,特别是这个例子:https://cloud.google.com/vision/docs/label-tutorial#label_tutorial_1

我按照本教程:https://cloud.google.com/vision/docs/getting-started#set_up_a_service_account来设置服务帐户,但是当我运行我的代码时,我得到:

googleapiclient.errors.HttpError: <HttpError 403 when requesting https://vision.googleapis.com/$discovery/rest?version=v1 returned "Request had insufficient authentication scopes.">
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?我无法弄清楚发生了什么,我的代码是1:1的教程.

python google-cloud-platform google-cloud-vision

6
推荐指数
2
解决办法
5853
查看次数