Received remote Channel.Close (403): 'ACCESS_REFUSED - operation not permitted on the default exchange while if I try to connect to the same queue with a simple basic_consume there is no problem. (Note: if I 'skip' the declare parts and just simply bind same thing happens)--
You received this message because you are subscribed to the Google Groups "Pika" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pika-python+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,What I did is simply removed the routing key for the binding process, and if you check (any of) the signature of the Channle.queue_bind the routing_key is defaulted to None, this is how I meat setting it to None.Regards,Balint
2018-05-15 18:04 GMT+02:00 <lba...@pivotal.io>:
Hi Bálint,Why are you using None for a routing key? Since the default exchange is a direct exchange, it doesn't make any sense to not use a routing key. This is why RabbitMQ is closing the channel with the error you provide.Thanks,Luke
On Tuesday, May 15, 2018 at 8:56:22 AM UTC-7, Bálint Molnár wrote:I'm trying to create an asynchronous consumer based on the this example provided by the documentation. It works well until you don't change the exchange to the default exchange (empty string and routing key None). In this case I'm constantly getting backReceived remote Channel.Close (403): 'ACCESS_REFUSED - operation not permitted on the default exchangewhile if I try to connect to the same queue with a simple basic_consume there is no problem. (Note: if I 'skip' the declare parts and just simply bind same thing happens)
RabbitMQ 3.6.10, Erlang 19.3
Any ideas what am I missing?
--
You received this message because you are subscribed to the Google Groups "Pika" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pika-python...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to pika-python+unsubscribe@googlegroups.com.
self._channel.queue_bind(self.on_bindok, self.QUEUE, self.EXCHANGE, self.ROUTING_KEY)(Also deceleration for the default exchange is not required, which also can be to be skipped)