简体   繁体   English

从云中的appengine运行时,images.get_serving_url(blob_key)返回错误。

[英]images.get_serving_url(blob_key) returns error when ran from appengine in cloud.

images.get_serving_url() returns the below error when ran from appengine in cloud but work fine when run in local environment. 从云中的appengine运行时,images.get_serving_url()返回以下错误,但在本地环境中运行时可以正常工作。 It works for fine image files saved in blob store, the issue is only with vido files. 它适用于保存在Blob存储中的精美图像文件,问题仅在于vido文件。 I am stuck with this and I dont know how to debug this. 我对此感到困惑,我不知道如何调试它。 Any help is greatly appreciated. 任何帮助是极大的赞赏。

File "/base/data/home/apps/s~silicon-window-102123/1.387642514189268755/main.py", line 95, in post url=images.get_serving_url(localkey) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/images/ init .py", line 1794, in get_serving_url return rpc.get_result() File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 613, in get_result return self. 文件“ /base/data/home/apps/s~silicon-window-102123/1.387642514189268755/main.py”,第95行,位于url = images.get_serving_url(localkey)中,文件“ / base / data / home / runtimes / python27 / python27_lib / versions / 1 / google / appengine / api / images / init .py“,行1794,在get_serving_url中返回rpc.get_result()文件“ / base / data / home / runtimes / python27 / python27_lib / versions / 1 /google/appengine/api/apiproxy_stub_map.py”,第613行,位于get_result返回自身中。 get_result_hook(self) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/images/__init .py", line 1892, in get_serving_url_hook raise _ToImagesError(e, readable_blob_key) TransformationError get_result_hook(self)文件“ / base / data / home / runtimes / python27 / python27_lib / versions / 1 / google / appengine / api / images / __ init .py”,行1892,在get_serving_url_hook中引发_ToImagesError(e,可读_blob_key)TransformationError

The clue is in the error thrown: TransformationError 线索在于抛出的错误: TransformationError

It does not work for video files. 它不适用于视频文件。 In the documentation for get_serving_url 在有关get_serving_url的文档中

google.appengine.api.images.get_serving_url(blob_key, size=None, crop=False, secure_url=None, filename=None, rpc=None)[source] google.appengine.api.images.get_serving_url(blob_key,size = None,crop = False,secure_url = None,filename = None,rpc = None)[源代码]

the method is described as ' Obtain a url that will serve the underlying image '. 该方法被描述为“ 获取将用于基础图像的网址 ”。

And some of the options don't make all that much sense for video. 而且某些选项对视频而言意义不大。 The word video does not appear on that page. 视频一词未出现在该页面上。 It's not supported. 不支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM