unexpected image API failure

86 views
Skip to first unread message

John Smith

unread,
Jan 17, 2016, 1:23:23 PM1/17/16
to Google App Engine

Hey,

Today I have introduced a new feature in my application which includes the image.ServeURL() API call.

Unfortunately every call to this API returns an error:
"API error 1 (images: UNSPECIFIED_ERROR)"

This happens in my production environment but I fail to reproduce it on my development environment (also deployed to the app engine).
As far as I can tell everything is exactly the same in these two environments.

Relevant piece of code:

blobkey := fmt.Sprintf("/gs/%s/%s", bucketName, fqdn)
blobKey, err := blobstore.BlobKeyForFile(ctx, blobkey)
if err != nil {
return fmt.Errorf("blobkey failure: %v", err)
}
servingURL, err := image.ServingURL(ctx, blobKey, &image.ServingURLOptions{Secure: true})
if err != nil {
return fmt.Errorf("ServeURL failure: %v", err) // <-- fails here
}


May you please help me shed some light or suggest a path to debug this?


Thanks,
John.

John Smith

unread,
Jan 18, 2016, 7:05:57 AM1/18/16
to Google App Engine
I have created a new bucket and everything seems to work.
The old bucket does not work, but I still need to use it.
How can I fix this?

Christian F. Howes

unread,
Jan 18, 2016, 3:47:54 PM1/18/16
to Google App Engine
i would start by comparing my permissions on the 2 buckets.  perhaps there is a service account or something that needs permission on the bucket that is not working?
Reply all
Reply to author
Forward
0 new messages