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
When I'm using ScheduledEvent as a source event in the lambda handler where actually Amazon EventBridge Scheduler's Schedule is a trigger for the function, I'm getting
An error occurred during JSON parsing: java.lang.RuntimeException
java.lang.RuntimeException: An error occurred during JSON parsing
Caused by: java.io.UncheckedIOException: com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `java.util.LinkedHashMap` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('
{}
')
at [Source: (ByteArrayInputStream); line: 1, column: 318] (through reference chain: com.amazonaws.services.lambda.runtime.events.ScheduledEvent["detail"])
at com.amazonaws.services.lambda.runtime.serialization.factories.JacksonFactory$InternalSerializer.fromJson(JacksonFactory.java:199)
Caused by: com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `java.util.LinkedHashMap` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('
{}
')
because "detail" parameter in that event is not an object - it is a string. Look at this sample below from Java logger:
IMO AWS should fix this event source for sending object-compatible field or we should implement new class e.g. ScheduledV2Event with a String type, not a Map. It looks like the "old" Scheduled Event is not compatible with the new Scheduled V2 Event.
The text was updated successfully, but these errors were encountered:
When I'm using ScheduledEvent as a source event in the lambda handler where actually Amazon EventBridge Scheduler's Schedule is a trigger for the function, I'm getting
because "detail" parameter in that event is not an object - it is a string. Look at this sample below from Java logger:
IMO AWS should fix this event source for sending object-compatible field or we should implement new class e.g.
ScheduledV2Event
with aString
type, not a Map. It looks like the "old" Scheduled Event is not compatible with the new Scheduled V2 Event.The text was updated successfully, but these errors were encountered: