Function Crash / 502 Gateway Error

I just tried setting the AWS_LAMBDA_JS_RUNTIME variable as per here, but that didn’t fix anything.