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
This will throw error
Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'SqsMessage': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
I am experiencing the same, but only for messages that I send to the queue, receiving messages from an AWS source such as an S3 event is correctly deserialized.
When debugging all I can find is that convertFromInternal in MappingJackson2MessageConverter tries to deserialize the deserialized payload using the objects .toString() method, which errors with the Jackson error that it can't parse it as JSON.
When looking at the objects in the debug console, it appears as though the deserialized payload isn't assignable to the required class, however the class types look the same.
Type: Bug
Component: SQS
Describe the bug
Version: 3.0.1
When I try to add Acknowledgment in my SqsListener function, it will throw JsonParseException
Sample
This will throw error
Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'SqsMessage': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
But this will not.
The text was updated successfully, but these errors were encountered: