#RabbitMQ NestJS Consumer Problem

1 messages · Page 1 of 1 (latest)

primal egret
#

Hello. I am trying to implement NestJS Consumer logic for a RabbitMQ Message queue. The consumer successfully receives the message from the queue but then throws the following warning.

WARN [Server] An unsupported event was received. It has been negative acknowledged, so it will not be re-delivered. Pattern: undefined

I have no idea how I have to define the pattern in the message so that it is recognized by NestJS.

This is my example payload

{"cmd":"process_job","id":"9ce4be28-475e-4c9b-8ad4-6c44d6f9c347"}

I attached an image of my methods. I have tried so many examples from google so far thats why I currently have two methods but none of them seems to properly map to the message.

I also include "cmd: process_job" in the message header but no luck there either.

Can someone point me in the right direction?

I do not publish the messages from another NestJS App but from Java Spring Boot and Python.

Any help is highly appreciated!

copper sparrow
#

have you solved it?I have same question ,i cannot receive message from server