[rabbitmq-discuss] Unable to store messages into queue

David Wragg david at rabbitmq.com
Tue Dec 14 08:55:13 GMT 2010


Hi,

Dinh <pcdinh at gmail.com> writes:
> I got a strange situation with RabbitMQ 2.1.1, Mac OSX 10.6.5, erlang
> version : 5.8.1.1 (not sure if it is a bug): I was unable to store message
> into queue using Python clients.In fact, it is standard code I took from
> RabbitMQ site. So it is supposed to work. It already worked before. For me,
> yes.
>
> [...]
> channel.queue_declare(queue='feeds', durable=True)
> [...]
> channel.basic_publish(exchange='', routing_key='importer',
> [...]

In the code you provide, you declare a queue called 'feeds', but you are
trying to publish to a queue called 'importer'.  If no such queue
exists, these published messages will simply be discarded.

David

-- 
David Wragg
Staff Engineer, RabbitMQ
SpringSource, a division of VMware


More information about the rabbitmq-discuss mailing list