404: NOT_FOUND - No exchange error

26 views
Skip to first unread message

Greg Stanton

unread,
Feb 28, 2025, 5:23:36 PMFeb 28
to rabbitmq-c-users

I’m receiving a channel error while running an application with Rabbit MQ. I’m running a RabbitMQ 4.0.5 broker and a client application that uses the rabbitmq-c library. Unfortunately, I don’t have access to the source code for the client. The broker and client are running on the same node (pod).  The error messages are below:

From client:

… server channel error 404: NOT_FOUND - no exchange 'xxxxx' in vhost '/'

From broker:

2025-02-28 22:05:18.859827+00:00 [error] <0.671.0> Channel error on connection <0.663.0> (127.0.0.1:58938 -> 127.0.0.1:5672, vhost: '/', user: 'guest'), channel 1:

2025-02-28 22:05:18.859827+00:00 [error] <0.671.0> operation queue.bind caused a channel exception not_found: no exchange 'xxxxx' in vhost '/'                

 

I can also reproduce the problem using the rabbitmq-c example applications amqp_list and amqp_sendstring if I create an exchange that is not amq.direct. Messages will publish and consume fine if I use amq.direct.

Any idea if what may be causing this issue?

 

 

 

Greg Stanton

unread,
Mar 3, 2025, 5:49:18 PMMar 3
to rabbitmq-c-users
Found out that the client application I was using wasn't always creating the exchange before creating the queue and binding. It appears to be a bug in the client application.
Reply all
Reply to author
Forward
0 new messages