You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Not getting records for S3Event (version 2.1) #481
I have issues getting my s3 event to run in my tests. I've captured this event from an actual file uploaded to my bucket.
Using the event from #187 is working for me - I get 1 record out of it.
Why is my event no working?
@ParameterizedTest
@Event(value = "test_s3_event.json", type = S3Event.class)
public void testHandleRequest(S3Event s3Event) throws Exception {
log.info("records: {}", String.valueOf(s3Event.getRecords().size()));
...
I just faced this issue myself. The problem is not a bug in your code, but that the request data does not match the API. records is required to be capitalized:
Activity
stevenl commentedon Aug 29, 2024
I just faced this issue myself. The problem is not a bug in your code, but that the request data does not match the API.
recordsis required to be capitalized:For reference, see https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-content-structure.html
josemarflausino commentedon Oct 9, 2025
Any fix to this? I'm facing the same problem with SQSEvent. Version 3.16.1