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(), ))
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)
def _error(self, err, req): if err.type != defer.CancelledError: import traceback log.error("error: %s" % (traceback.format_exc(), ))
def _response_error(self, err, call, timeout): log.error("response error: %s" % (err, )) call.cancel() timeout.cancel()