Example #1
0
 def _polling_timeout(self, request, callback):
     try:
         # WARNING Lighttpd ModProxyCore will not finish the request
         utils.no_content(request)
         request.finish()
     except:
         import traceback
         log.error("error: %s" % (traceback.format_exc(), ))
Example #2
0
 def _polling_timeout(self, request, callback):
     try:
         # WARNING Lighttpd ModProxyCore will not finish the request
         utils.no_content(request)
         request.finish()
     except:
         import traceback
         log.error("error: %s" % (traceback.format_exc(), ))
Example #3
0
    def render_POST(self, request):
        if not self.post_method():
            #log.debug("GET only method - dropping request")
            return utils.bad_request(request)

        try:
            data = json.load(request.content)
            return self._render(request, data)
        except:
            import traceback
            log.error("error: %s" % (traceback.format_exc(), ))
            return utils.bad_request(request)
Example #4
0
    def render_POST(self, request):
        if not self.post_method():
            #log.debug("GET only method - dropping request")
            return utils.bad_request(request)

        try:
            data = json.load(request.content)
            return self._render(request, data)
        except:
            import traceback
            log.error("error: %s" % (traceback.format_exc(), ))
            return utils.bad_request(request)
Example #5
0
 def _error(self, err, req):
     if err.type != defer.CancelledError:
         import traceback
         log.error("error: %s" % (traceback.format_exc(), ))
Example #6
0
 def _response_error(self, err, call, timeout):
     log.error("response error: %s" % (err, ))
     call.cancel()
     timeout.cancel()
Example #7
0
 def _error(self, err, req):
     if err.type != defer.CancelledError:
         import traceback
         log.error("error: %s" % (traceback.format_exc(), ))
Example #8
0
 def _response_error(self, err, call, timeout):
     log.error("response error: %s" % (err, ))
     call.cancel()
     timeout.cancel()