Im trying to get the url of an image from the blogstore. In using webapp2 and python.
I do this:
from google.appengine.api.images import get_serving_url_async ... upload = self.get_uploads()[0] blob_key = upload.key() url = yield get_serving_url_async(blob_key, secure_url = True)
And I get the error message:
> Traceback (most recent call last):
>
> File "C:Program Files
> (x86)Googlegoogle_appenginelibwebapp2-2.3webapp2.py", line 1522,
> in __call__
>
> retu response(environ, start_response)
>
> TypeError: 'generator' object is not callable
>
> ERROR 2016-04-29 20:02:28,489 wsgi.py:279]
>
> Traceback (most recent call last):
>
> File "C:Program Files
> (x86)Googlegoogle_appenginegoogleappengineruntimewsgi.py", line
> 267, in Handle
>
> result = handler(dict(self._environ), self._StartResponse)
>
> File "C:Program Files
> (x86)Googlegoogle_appenginelibwebapp2-2.3webapp2.py", line 1524,
> in __call__
>
> retu self._inteal_error(e)(environ, start_response)
>
> File "C:Program Files
> (x86)Googlegoogle_appenginelibwebapp2-2.3webapp2.py", line 1522,
> in __call__
>
> retu response(environ, start_response)
>
> TypeError: 'generator' object is not callable
All is working fine when I use:
url = get_serving_url(blob_key, secure_url = True)
I don't find the way to obtain the url for an async download.
Does anybody know where is the error? There is very little in the web about how works.
Thanks.
