urlfetch - DownloadError in App Engine when requesting specific urls -
i'm getting strange downloaderror while trying request specific url using urlfetch.fetch
here example code:
url = 'https://iiko.net:9900/api/0/auth/access_token' try: result = urlfetch.fetch(url, deadline=50, validate_certificate=false) if result.status_code == 200: pass except downloaderror er: logging.exception(er)
and here error:
unable fetch url: https://iiko.net:9900/api/0/auth/access_token traceback (most recent call last): file "/base/data/home/apps/s~iappintheair/phil-dev.383038517236330514/handlers/api/test.py", line 18, in result = urlfetch.fetch(url, deadline=50, validate_certificate=false) file "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/urlfetch.py", line 271, in fetch 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.__get_result_hook(self) file "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/urlfetch.py", line 414, in _get_fetch_result raise downloaderror("unable fetch url: " + url + error_detail) downloaderror: unable fetch url: https://iiko.net:9900/api/0/auth/access_token
i'm sure it's not connected deadlines, because code fails in few seconds.
possibly it's connected broken ssl cerificate on website, or gae ip-addresses blocked reason site, can't contact them right now.
any appreciated, thanks!
the reason of problem broken ssl certificate, works fine. walkaround used proxy server, know it's not perfect solution, have no idea how fix on app engine level.
Comments
Post a Comment