Listing web-mqtt connections fails with :not_found
#9302
-
Listing Web-MQTT connections in the HTTP API work, but when trying to list them with
Compare to HTTP API:
This is RabbitMQ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
the issue is that the
I'm not sure how to fully solve this, (The management API uses completely different path, it does not query the connection process directly but reads info stored in mgmt db/core metrics table which is populated by the connection processes by emitting stats). |
Beta Was this translation helpful? Give feedback.
-
Opened a draft PR with a proposal that has the problem of mqtt plugin calling web_mqtt plugin #9697 |
Beta Was this translation helpful? Give feedback.
the issue is that the
list_mqtt_connections
commandlocal_connection_pids()
rabbit_mqtt_reader:info/2
https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbitmq_mqtt/src/rabbit_mqtt.erl#L72gen_server:call
. https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbitmq_mqtt/src/rabbit_mqtt_reader.erl#L63{error, not_found}
for any other call (like the info call) https://github.com/ninenines/cowboy/b…