Expected Behavior
When a durable function is subscribed to an SQS queue, then the incoming SQS event should directly convert to SQSEvent model of AWS Lambda Java Events library.
Actual Behavior
Durable execution fails with the following error.
Cannot invoke \"java.util.List.iterator()\" because the return value of \"com.amazonaws.services.lambda.runtime.events.SQSEvent.getRecords()\" is null
Steps to Reproduce
- Set up SNS -> SQS -> Durable Lambda (Java)
- Use
SQSEvent model of AWS Lambda Java Events library.
public SQSBatchResponse handleRequest(final SQSEvent event, final DurableContext ctx) {
}
- Publish an SNS message.
SDK Version
1.0.1
Java Version
17
Is this a regression?
No
Last Working Version
No response
Additional Context
No response
Expected Behavior
When a durable function is subscribed to an SQS queue, then the incoming SQS event should directly convert to
SQSEventmodel of AWS Lambda Java Events library.Actual Behavior
Durable execution fails with the following error.
Steps to Reproduce
SQSEventmodel of AWS Lambda Java Events library.SDK Version
1.0.1
Java Version
17
Is this a regression?
No
Last Working Version
No response
Additional Context
No response