- 最新
- 最多得票
- 最多評論
Hi,
I have tried to use (Pika) Python Library to connect RabbitMQ, it's not connecting using the Python as well.
Error:
pika.exceptions.IncompatibleProtocolError: StreamLostError: ("Stream connection lost: ConnectionResetError(54, 'Connection reset by peer')",)
I have checked the security group and allowed all the port for inbound and outbound.
Please let me know, how can I troubleshoot further.
Thanks,
Surya
Hi,
I have tried to figure out by myself. It's not connecting using the
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
It's working using below method.
#Python using Pika
url_parameters = pika.URLParameters('amqps://user:password@aws-hostname:5671/')
connection = pika.BlockingConnection(url_parameters)
Thanks,
Surya
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前