I am trying to serve images stored in cloud storage from appengine python
Standard environment.
I found the images.get_serving_url() to be the simplest way to do this after
some research. But, unfortunately it did not work when deployed.
Here is the error message. Am I doing something wrong in this call. Or this
method is not the correct one for this use. Is there any other simpler way to
achieve this?
return images.get_serving_url(None, filename='/gs/' + self.get_filename())
File
"/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/api/images/__init__.py",
line 1868, in get_serving_url
return rpc.get_result()
File
"/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
line 613, in get_result
return self.__get_result_hook(self)
File
"/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/api/images/__init__.py",
line 1972, in get_serving_url_hook
raise _ToImagesError(e, readable_blob_key)
InvalidBlobKeyError: InvalidBlobKeyError:
u'/gs//silver-device-834.appspot.com/previews/63e0609e-7147-496d-9418-c44bdb5b0456.jpg'
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/635d3653-91e4-4559-bc24-f2e0d009c6b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.