This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
s3EventNotification.getRecords() returns null even when the record is present #804
Labels
status: waiting-for-triage
An issue we've not yet triaged
I am consuming the events that occurred in the s3 bucket using the SQS and fetching the s3 object using the keys, I am using the @SqsListener to listen to the events. As per the documentation, I may use the custom objects as shown below, when I use the
S3EventNotification
to get the records and fetch s3 bucket keys I am getting it as null while if I use String instead of S3EventNotification class I am able to get the JSON in string format. I think I should get the record using the S3EventNotification.getRecords() method and not convert the string to class. Is it the excepted behavior or is it the bug?QueueListener.java
MessagingConfig.java
pom.xml
application.properties
AWS Configurations
Java 11
The text was updated successfully, but these errors were encountered: