ssut / nestjs-sqs

A project to make SQS easier to use within NestJS, with decorator-based handling and seamless NestJS-way integration.
MIT License
214 stars 53 forks source link

Consumer is not working on AWS - NestJS #44

Open eliasjtg opened 1 year ago

eliasjtg commented 1 year ago

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'
    }
  ]
}
LuiFerPereira commented 4 months ago

Hi, any solution? I have the same problem: The consumer don't logging any error but messages aren't consuming

ssut commented 4 months ago

Please let me know so I can investigate it: I’m not sure, but do you think the same problem still exists in the latest version or in the pre-release version in PR #85? (You guys may need to build this yourselves in this case but it would be very helpful if you guys could let me know the result.)