更新时间:2022-03-30 23:20:00
客户端尝试使用 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 localhost;
Try changing the client to connect to the IPv4 localhost instead;
connection = pika.BlockingConnection(pika.ConnectionParameters('127.0.0.1'))