未找到请求的项目

min*_*wik 2 google-cloud-storage google-cloud-platform

当我尝试使用 Flask 应用访问 Google Cloud Storage 上的存储桶时,出现以下错误: google.api_core.exceptions.NotFound: 404 GET https://storage.googleapis.com/storage/v1/b/[BUCKET -NAME]?projection=noAcl:找不到请求的项目。我在安装并授权了 Google Cloud SDK 的 Windows 10 计算机上进行了尝试。

min*_*wik 6

现在问题已经解决了。由于我更改了项目,因此我必须使用 gcloud CLI 更改它,但它在位于 AppDatat/Roaming/gcloud 中的“application_default_credentials.json”文件中没有更改。我只需要在那里调整项目 ID 即可。