更新时间:2021-12-11 22:29:24
客户端正在尝试使用 IPv6 localhost (::1:5672
) 进行连接,而服务器正在侦听 IPv4 localhost ({"127.0.0.1",5672}
).
The client is trying to connect using IPv6 localhost (::1:5672
), while the server is listening to IPv4 localhost ({"127.0.0.1",5672}
).
尝试更改客户端以连接到 IPv4 本地主机;
Try changing the client to connect to the IPv4 localhost instead;
connection = pika.BlockingConnection(pika.ConnectionParameters('127.0.0.1'))