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
Example payload: {"data":{"value":"AN_EXAMPLE_JSON_PAYLOAD","id":"228ad7d1-dd16-4fd5-a02e-4b4bdcb7eaed","source":"service-test","type":"dummy.event","subject":null,"time":null,"specVersion":"V1","dataContentType":"application/cloudevents+json","dataSchema":null,"extensionNames":[],"attributeNames":["datacontenttype","specversion","id","source","type"]}
Getting following error:
org.springframework.messaging.MessageHandlingException: error occurred in message handler [bean 'serviceActivator.handler' for component 'serviceActivator']; nested exception is io.cloudevents.core.format.EventDeserializationException: com.fasterxml.jackson.databind.exc.MismatchedInputException: Missing mandatory specversion attribute
I am not sure if this is a known issue of if there is anything missing in the documentation to properly serialize the base event attributes.
Would appreciate any help here.
Regards,
Giriraj
The text was updated successfully, but these errors were encountered:
@giriraj-hh - Can you clarify where the "example payload" is coming from? .. CloudEvent context attribute names aren't camelCase'd, so "specVersion" doesn't mean the same thing as "specversion".
Versions:
Example payload:
{"data":{"value":"AN_EXAMPLE_JSON_PAYLOAD","id":"228ad7d1-dd16-4fd5-a02e-4b4bdcb7eaed","source":"service-test","type":"dummy.event","subject":null,"time":null,"specVersion":"V1","dataContentType":"application/cloudevents+json","dataSchema":null,"extensionNames":[],"attributeNames":["datacontenttype","specversion","id","source","type"]}
Getting following error:
org.springframework.messaging.MessageHandlingException: error occurred in message handler [bean 'serviceActivator.handler' for component 'serviceActivator']; nested exception is io.cloudevents.core.format.EventDeserializationException: com.fasterxml.jackson.databind.exc.MismatchedInputException: Missing mandatory specversion attribute
I am not sure if this is a known issue of if there is anything missing in the documentation to properly serialize the base event attributes.
Would appreciate any help here.
Regards,
Giriraj
The text was updated successfully, but these errors were encountered: