Closed
Description
A deployed lambda written in java fails in API Gateway due to a missing version field. Error message is shown below:
Unrecognized field "version" (class com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent), not marked as ignorable (12 known properties: "requestContext", "body", "queryStringParameters", "path", "headers", "httpMethod", "multiValueQueryStringParameters", "resource", "pathParameters", "isBase64Encoded", "stageVariables", "multiValueHeaders"])
It seems the latest java lambda events is missing the "version" field hence the event cannot be serialized without throwing an exception.
Metadata
Metadata
Assignees
Labels
No labels