英文:
Go App Engine getting API error 7 (images: ACCESS_DENIED)
问题
似乎是由于未加载图像服务而导致的,但模块已加载。我在开发服务器上没有遇到这些错误。
我认为错误是由这个调用引起的 image.ServingURL(c, blobKey, nil)
,其中 blobKey
是
storageKey := r.FormValue("storageKey")
blobKey, err := blobstore.BlobKeyForFile(c, storageKey)
而存储键是表示 GSE 中文件的键。
有人知道如何修复这个错误吗?
英文:
Seems that this would be from not loading the images service, but the module is loaded. I do not get these errors on the development server.
I think the error is coming from this call image.ServingURL(c, blobKey, nil)
, where the blobKey
is
storageKey := r.FormValue("storageKey")
blobKey, err := blobstore.BlobKeyForFile(c, storageKey)
and the storage key is a key that represents a file in GSE.
Anyone know how to fix this error?
答案1
得分: 1
可能是因为你所引用的blobKey指向了一个你的应用程序无法访问的Cloud Storage存储桶。
英文:
It's possibly because the blobKey you have is referencing a Cloud Storage bucket that your app does not have access to.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论