google app engine - Getting error 504: Gateway Time-out in dev server -
i've been struggling 504 error on python app engine dev server. i'm behind corporate proxy have no trouble setting http_proxy , https_proxy, don't know if related problem.
in code use discovery apiclient (main.py line 63)
driveservice = discovery.build("drive", "v2", http=http)
when executes, following traceback
info 2013-10-07 13:49:42,812 discovery.py:190] url being requested: https://www.googleapis.com/discovery/v1/apis/drive/v2/rest?userip=%3a%3a1 error 2013-10-07 13:49:55,848 wsgi.py:262] traceback (most recent call last): file "c:\program files (x86)\google\google_appengine\google\appengine\runtime\wsgi.py", line 239, in handle handler = _config_handle.add_wsgi_middleware(self._loadhandler()) file "c:\program files (x86)\google\google_appengine\google\appengine\runtime\wsgi.py", line 298, in _loadhandler handler, path, err = loadobject(self._handler) file "c:\program files (x86)\google\google_appengine\google\appengine\runtime\wsgi.py", line 84, in loadobject obj = __import__(path[0]) file "c:\temp\iterlex-backend\main.py", line 63, in <module> driveservice = discovery.build("drive", "v2", http=http) file "c:\temp\iterlex-backend\oauth2client\util.py", line 132, in positional_wrapper return wrapped(*args, **kwargs) file "c:\temp\iterlex-backend\apiclient\discovery.py", line 192, in build resp, content = http.request(requested_url) file "c:\temp\iterlex-backend\httplib2\__init__.py", line 1464, in request cached_value = self.cache.get(cachekey) file "c:\program files (x86)\google\google_appengine\google\appengine\api\memcache\__init__.py", line 559, in results = rpc.get_result() file "c:\program files (x86)\google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 612, in get_result return self.__get_result_hook(self) file "c:\program files (x86)\google\google_appengine\google\appengine\api\memcache\__init__.py", line 615, in __get_hook rpc.check_success() file "c:\program files (x86)\google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 578, in check_success self.__rpc.checksuccess() file "c:\program files (x86)\google\google_appengine\google\appengine\api\apiproxy_rpc.py", line 156, in _waitimpl self.request, self.response) file "c:\program files (x86)\google\google_appengine\google\appengine\ext\remote_api\remote_api_stub.py", line 200, in makesynccall self._makerealsynccall(service, call, request, response) file "c:\program files (x86)\google\google_appengine\google\appengine\ext\remote_api\remote_api_stub.py", line 226, in _makerealsynccall encoded_response = self._server.send(self._path, encoded_request) file "c:\program files (x86)\google\google_appengine\google\appengine\tools\appengine_rpc.py", line 393, in send f = self.opener.open(req) file "c:\tools\python27\lib\urllib2.py", line 397, in open response = meth(req, response) file "c:\tools\python27\lib\urllib2.py", line 510, in http_response 'http', request, response, code, msg, hdrs) file "c:\tools\python27\lib\urllib2.py", line 435, in error return self._call_chain(*args) file "c:\tools\python27\lib\urllib2.py", line 369, in _call_chain result = func(*args) file "c:\tools\python27\lib\urllib2.py", line 518, in http_error_default raise httperror(req.get_full_url(), code, msg, hdrs, fp) httperror: http error 504: gateway time-out httperror()
if try offending url curl in same console windows, works (i have use -k option though)
c:\temp> curl -k https://www.googleapis.com/discovery/v1/apis/drive/v2/rest?userip=%3a%3a1 { "kind": "discovery#restdescription", "etag": "\"xflbyotztbo225mnsgwjq-fhlha/afnpisgyt0xxorzz7gmwdr5pprg\"", ...
being new app engine , python, confess i'm bit lost, appreciated
thanks! nicolas
Comments
Post a Comment