eclipse / paho.mqtt.rust

paho.mqtt.rust
Other
511 stars 102 forks source link

Token v5 failure after moving the broker to docker #205

Closed EvilWatermelon closed 1 year ago

EvilWatermelon commented 1 year ago

Getting the following error:

DEBUG [paho_mqtt::token] Token v5 failure! Token: 0xffffa0044b20, Response: 0xffffac874590
DEBUG [paho_mqtt::token] Token failure message: "TCP/TLS connect failure"
DEBUG [paho_mqtt::token] Token w ID 0 failed with code: -1
ERROR [isumis::service::subscriber_service] [-1] TCP/TLS connect failure

I'm using the example async_subscriber_v5.rs. It works as a standalone service.

EvilWatermelon commented 1 year ago

Fixed it by changing the connection address to the docker gateway IP which is assigned to the docker0 interface.