Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

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

Open
th0th opened this issue Sep 23, 2023 · 1 comment
Open

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

th0th opened this issue Sep 23, 2023 · 1 comment

Comments

@th0th
Copy link

th0th commented Sep 23, 2023

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
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants