Skip to content

Type of 'GlobalExchange' is hardcoded #87

@mglimmerveen

Description

@mglimmerveen

Context

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions