-
Notifications
You must be signed in to change notification settings - Fork 9
Type of 'GlobalExchange' is hardcoded #87
Copy link
Copy link
Open
Description
Context
- node version: 10.15.3
- bunnybus version: 3.1.1
- environment (node, browser): node
- We're using the RabbitMQ delayed message plugin
What are you trying to achieve or the steps to reproduce ?
I'm trying to publish a message to a RabbitMQ delayed message exchange (type 'x-delayed-message', as defined by the RabbitMQ delayed message plug-in), using BunnyBus. When I declare this exchange as 'globalExchange', I run into an error, because BunnyBus 'assumes' that this exchange is of type 'topic'. This is hardcoded in the _publish function.
It would be nice to make this 'globalExchangeType' configurable, or perhaps make the _publish function agnostic of the exchange type for existing exchanges.
What result did you observe ?
I got the following error message:
Operation failed: ExchangeDeclare; 406 (PRECONDITION-FAILED) with message "PRECONDITION_FAILED - inequivalent arg 'type' for exchange 'Bot' in vhost '/': received 'topic' but current is ''x-delayed-message''"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels