Search code examples
pythonrabbitmqpika

pike.exception.StreamLostError python pika rabbitmq


I get pike.exception.StreamLostError: Stream connection lost: connectionResetError(10054... when I call connection.channel():

p = pika.ConnectionParameters('localhost')
c = pika.BlockingConnection(p)
channel = connection.channel()
...

RabbitMQ 3.11.16 Erlang 26.0


Solution

  • The problem is that you are using Erlang 26 with RabbitMQ 3.11.x. Erlang 26 is incompatible with RabbitMQ 3.11.x

    You have to use Erlang 25 for RAbbitMQ 3.11.x See https://www.rabbitmq.com/which-erlang.html

    Erlang 26 is not officially supported yet; we are working on it;