Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeadLetter not recognised #175

Open
martinevent opened this issue Aug 13, 2019 · 0 comments
Open

DeadLetter not recognised #175

martinevent opened this issue Aug 13, 2019 · 0 comments

Comments

@martinevent
Copy link

I am using the RecoveryStrategy.limitedRedeliver strategy. I want it to send messages to the DLX i declared which is attached to a queue where failed messages are picked off.
I keep getting this
val exx: Exchange[Exchange.Direct.type] = Exchange.direct("op.dead")
val onAbandon: RecoveryStrategy = nack(true)
val redeliverDelay: FiniteDuration = .05.seconds
implicit val recoveryStrategy =
RecoveryStrategy.limitedRedeliver(
retryCount = 1,
exchange = exx,
retryQueueName = retry => "tbd",
onAbandon = onAbandon,
redeliverDelay = redeliverDelay
)
I have it set up as shown above. Is there something I am missing? I do not want a retry queue. I just want it to retry on the same queue, if it fails, I want it sent to the DLX
rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'tbd' in vhost '/': received none but current is the value 'op.dead' of type 'longstr', class-id=50, method-id=10)

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

No branches or pull requests

1 participant