Saw the async handler was removed due to an issue with aws-serverless-express. It's an issue related to the fact that async handlers return a promise, which the serverless package tries to proxy, resulting in malformed response back to API Gateway
I.e doing something like the following in your handler should fix the issue you were facing:
Saw the async handler was removed due to an issue with
aws-serverless-express
. It's an issue related to the fact that async handlers return a promise, which the serverless package tries to proxy, resulting in malformed response back to API GatewayI.e doing something like the following in your handler should fix the issue you were facing:
Related commit https://github.com/rdlabo/serverless-nestjs/commit/84db18ea4c529450b557f88a02aff1df043206cc