You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
i've seen you've got an empty else statement with a comment // Don't emit an error if setups failed because the channel was closing..
I'm triggering a silent error when I'm trying to re-assert a queue with different arguments (ex: x-dead-letter-exchange)
when I add back the emit block
this.emit("error",err,{name: this.name});
I can get my error
ERROR { Error: Operation failed: QueueDeclare; 406 (PRECONDITION-FAILED) with message "PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'my-queue' in vhost '/': received 'dl_4000' but current is 'dl_3000'"
by listening to the channel error event.
But I guest that was not meant to be done this way, so what would be a proper way of handling error channel setup functions ?
or maybe I'm supposed to catch the error in the disconnected event?
Hello,
i've seen you've got an empty
else
statement with a comment// Don't emit an error if setups failed because the channel was closing.
.I'm triggering a silent error when I'm trying to re-assert a queue with different arguments (ex:
x-dead-letter-exchange
)when I add back the emit block
I can get my error
by listening to the channel error event.
But I guest that was not meant to be done this way, so what would be a proper way of handling error channel setup functions ?
or maybe I'm supposed to catch the error in the disconnected event?
(PS: l'm building this https://github.com/trusk-official/amqp-connector and trying to add a deadletter feature!)
Thanks!
The text was updated successfully, but these errors were encountered: