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

[BUG] Rabbitmq template exchange variable not editable in streaming pipeline #5069

Open
LanderBV opened this issue May 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@LanderBV
Copy link

Mage version

0.9.70

Describe the bug

The bug occurs when attempting to publish data to a RabbitMQ broker using the AMQP protocol and subscribing to this broker using MQTT in a streaming pipeline. The MageAI publisher creates an incorrect RabbitMQ queue because the exchange passed by default in the code is ' ' (empty string), whereas it should be 'amq.topic'.
image

Creating a binding on this queue does not solve the problem, hence communication does not happen correctly.
image

To reproduce

  1. create a rabbitmq exporter in streaming mode.
  2. deploy a rabbitmq broker with rabbitmq_mqtt plugin (rabbitmq-plugins enable --offline rabbitmq_mqtt).
  3. create a rabbitmq mqtt suscriber in python with paho-mqtt.
  4. send data with Mage to Rabbit with AMQP template.
  5. the suscriber will not recive data.

Expected behavior

MageAI template should create the AMQP queue with the correct exchange and the communication would work perfectly.

Screenshots

No response

Operating system

  • Docker compose version: 3.9
  • MageAI image: mageai/mageai:0.9.70
  • Rabbitmq image: rabbitmq:3.9-management

Additional context

Solution:
I create a custom publisher to avoid the bug and creating the communication.
image

@LanderBV LanderBV added the bug Something isn't working label May 15, 2024
@LanderBV LanderBV changed the title [BUG] [BUG] Rabbitmq template exchange variable not editable in streaming pipeline May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant