gpt4 book ai didi

google-cloud-storage - 谷歌云存储 : Google Cloud Storage JSON API to fix Access Not Configured error 403?

转载 作者:行者123 更新时间:2023-12-01 12:45:40 26 4
gpt4 key购买 nike

我正在使用 HTTP POST 请求将文件上传到 Google Cloud Storage。

请求是:

POST /upload/storage/v1beta1/b/myBucket/o?uploadType=media&name=testFile HTTP/1.1
Host: www.googleapis.com
Content-length: 24
Content-type: text/plain
Authorization: OAuth ba26.AHXXXXXXXXXVHXdVRAhBAHR_UXXXXXLV-MqPMXXXJwc

<BINARY DATA - 24B>

我收到以下错误作为响应:

{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured"
}
],
"code": 403,
"message": "Access Not Configured"
}
}

我在某处读到我需要打开 Google Cloud Storage JSON API。是否必须打开 Google Cloud Storage JSON API或者是否有任何其他解决方案来修复此错误?

最佳答案

要使用 JSON API,必须启用它。通过访问 Cloud Console 启用 JSON API ,单击 API,并启用“Google Cloud Storage JSON API”

关于google-cloud-storage - 谷歌云存储 : Google Cloud Storage JSON API to fix Access Not Configured error 403?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16243307/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com