diff --git a/samcli/local/apigw/local_apigw_service.py b/samcli/local/apigw/local_apigw_service.py index 43c9260251..0d1fa0e38a 100644 --- a/samcli/local/apigw/local_apigw_service.py +++ b/samcli/local/apigw/local_apigw_service.py @@ -347,7 +347,8 @@ def _request_handler(self, **kwargs): self.api.stage_variables, None, ) - except UnicodeDecodeError: + except UnicodeDecodeError as error: + LOG.error("UnicodeDecodeError while processing HTTP request: %s", error) return ServiceErrorResponses.lambda_failure_response() stdout_stream = io.BytesIO()