amazon sqs – SQS receive message failed

SQS receive message failed: Unexpected token < in JSON at position 0
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.

This happens when bring up the application. The error occurring in repeated loop until close the applications.

This happen during AWS JS SDK version up-gradations for V2 to V3

The @aws-sdk/client-sqs version 3.470.0 and sqs-consumer version 8.1.0.

On investigations we found that the issues is coming from sqs-consumer . The sqs-consumer is using latest version of @aws-sdk/client-sqs. I think there is the issue.

How to get rid out of the issue ?

Read more here: Source link