gpt4 book ai didi

google-cloud-platform - google-storage-object-creator@project-name.iam.gserviceaccount.com 没有 storage.objects.delete 访问 bucket-x/xxx.jpg

转载 作者:行者123 更新时间:2023-12-04 14:57:08 26 4
gpt4 key购买 nike

尝试将图像从服务器上传到我得到的服务器:

[ { domain: 'global', reason: 'forbidden', message: 'googlec-storage-object-creator@project-name.iam.gserviceaccount.com does not have storage.objects.delete access to bucket-mybucket/mypicture.jpg.' } ], code: 403,

如果图像名称不同,它就可以工作。版本控制已暂停,并且有一个具有该名称的文件,但已被删除。

我什至删除了存储桶并重新创建了它,但问题仍然存在。

如果文件名与“mypicture.jpg”不同,则完全没有错误

对此有什么帮助吗?谢谢

最佳答案

我做了和 OP 一样的事情,为此花了很多时间,我从 google cloud node 找到了帖子在github上。

By stephenplusplus

I have a feeling this is due to an issue in gcs-resumable-upload, the module behind this method. There is a PR with a fix: stephenplusplus/gcs-resumable-upload#23

In the meantime, you could try:

Disabling resumable uploads: gcs_file.createWriteStream({ resumable: false })Deleting the cache file that gcs-resumable-upload uses to track the state of uploads: ~/.config/configstore/gcs-resumable-upload.jsonIf neither of these work, we likely have a different problem on our hands. Let me know, and sorry you ran into this!

只需在 WriteableStream 上禁用可恢复更新,即可享受新世界。

关于google-cloud-platform - google-storage-object-creator@project-name.iam.gserviceaccount.com 没有 storage.objects.delete 访问 bucket-x/xxx.jpg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49547823/

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