-
Hi all, This is a bit particular to AWS, we are trying to use TaskIQ with Amazon MQ which requires us to connect via this URL scheme (where we must use SSL to connect):
which produces the following error when the
trying to debug it, I found that this to do with
and I did get the same error. Knowing that this is unrelated to I did find this article outlining a Python example. I also wondered if it's possible to use other protocols to connect to the queue like STOMP in a TaskIQ context? Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Since I see syntax error for protocol, I guess it sends you encrypted data and you have to provide itwith certificate in order to decrypt data. https://aio-pika.readthedocs.io/en/latest/apidoc.html#aio_pika.connect_robust Here's a method reference, and, as you can see, tls is set to False by default. Since in the example you've sent they use SSLContext and certificates. |
Beta Was this translation helpful? Give feedback.
So turned out that AmazonMQ defaults to using ActiveMQ which exposes the endpoint as
amqp+ssl://
which would be incompatible withamqps
, they do do have a RabbitMQ offering which uses theamqp
protocol, and changing to this makes everything work as expected.Hopefully this is helpful for anyone out there using TaskIQ on AWS, that you should use an RabbitMQ instance not an ActiveMQ.