diff --git a/proxy/http/handler.py b/proxy/http/handler.py index 8193255c..73e189a0 100644 --- a/proxy/http/handler.py +++ b/proxy/http/handler.py @@ -307,7 +307,7 @@ class HttpProtocolHandler(BaseTcpServerHandler): except Exception as exc: logger.exception('Error parsing the request', exc_info=exc) raise HttpProtocolException( - 'Error when parsing request: %s' % data.tobytes().decode('utf-8'), + 'Error when parsing request: %s' % data.tobytes().decode('utf-8', errors='ignore'), ) if not self.request.is_complete: return False