Go App Engine 获取 API 错误 7(images: ACCESS_DENIED)

huangapple go评论86阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2014年3月15日 05:28:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/22416065.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定