nestjs-sqs icon indicating copy to clipboard operation
nestjs-sqs copied to clipboard

Consumer is not working on AWS - NestJS

Open eliasjtg opened this issue 1 year ago • 0 comments

Hi. I just implemented the SQS queries. It calls the nestjs server, but this is not calling the handler correctly. It isn't logging any error messages or even entering in the handler. I verified that the handler is being called correctly, but still it doesn't do anything. This is only happning when using AWS, since, locally it works just fine.

2023-01-27T15:09:14.908Z	d4978ef1-adc9-5f25-91e1-d2bc4683894e	INFO	{
  Records: [
    {
      messageId: '52ef80c0-02e0-40f7-a361-4f1c51bf13bc',
      receiptHandle: 'AQEB4y3zSc9MmN/l5Mdpfas2yPTBbpl1KmfwckkP8enLrbumKnnMeFX4jE2TC6jvW0NGuQPzsfaDELa73UZkqJTPupHDT1vel8ipzYKVhdExXsPgjgG9T/4JGq2bogXxuM5CA2coGCCg0IqBA3y3pYcWbSzQJ9rnQPvcmLTlDVsZbvE96DzGEbnoYFhepiohUCJP/JKVrF+w1L07RZ7eMEn4OCAJtp2su84j0hoq6g9tC1b+I8vyzyXCVx7MfdNaL6qdiAldSkaIs1NYN33U62ZUMNJO9jJurs9XhP43QZ8ZCaKuGhBGbxAJFTCQC8IOQ7paltwHLB+H+ex/t+1Y3ygW6ZkBUcNZ+Etck+HQAmOsnjez65eYpCnnAqYQUFBRdT85U7tgFaX5LzXhLA3/Vsxy/Q==',
      body: '63d3e8d2f8d244ae1a9dec86',
      attributes: [Object],
      messageAttributes: [Object],
      md5OfMessageAttributes: 'a0c076cee46e48e232dc8c31996a2abe',
      md5OfBody: '4c4c406dc49e40e27c5b83ea0ef07fc2',
      eventSource: 'aws:sqs',
      eventSourceARN: 'arn:aws:sqs:us-east-1:???:SearchDriverBooking',
      awsRegion: 'us-east-1'
    }
  ]
}

eliasjtg avatar Jan 27 '23 15:01 eliasjtg