I am trying to consume messages from an existing queue. The queue has its x-message-ttl set. When I add the amqp-in node to consume that queue, I get this log:
"Could not consume message: Error: Operation failed: QueueDeclare; 406 (PRECONDITION-FAILED) with message "PRECONDITION_FAILED - inequivalent arg 'x-message-ttl' for queue 'queueName' in vhost 'vhost': received none but current is the value '9000' of type 'long'""
I couldn't make sense of this error, I checked and the error is thrown by the upstream amqplib's RPCs.
I will try to reproduce the problem, but Maybe it doesn't work
I am trying to consume messages from an existing queue. The queue has its
x-message-ttl
set. When I add theamqp-in
node to consume that queue, I get this log:How should I fix this?