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'Regards,
Suresh