Stormpass / node-red-contrib-amqp

Amqp nodes for node-red
https://flows.nodered.org/node/@stormpass/node-red-contrib-amqp
2 stars 4 forks source link

Can't connect to an existing queue with x-message-ttl #2

Open th0th opened 9 months ago

th0th commented 9 months ago

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'""

How should I fix this?

Stormpass commented 4 months ago

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