根据官网提供的代码(consumer)如下:
运行会出现下面的错误:
pika.exceptions.ProbableAuthenticationError: ConnectionClosedByBroker: (403) ‘ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.’
解决方案:
再次运行,无异常
根据官网提供的代码(consumer)如下:
运行会出现下面的错误:
pika.exceptions.ProbableAuthenticationError: ConnectionClosedByBroker: (403) ‘ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.’
解决方案:
再次运行,无异常