org.eclipse.paho.client.mqttv3.MqttException: 等待来自服务器的响应时超时Error connecting or subscribing to [h
报错原因,由于服务重启导致IP变了,mqtt服务校验出现问题,在docker配置中关闭校验或者重新配置新的校验地址。直接部署服务应该也有相关配置。mqtt报错,无法订阅topic。
·
Error connecting or subscribing to [heart/#]
org.eclipse.paho.client.mqttv3.MqttException: 等待来自服务器的响应时超时
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:31) ~[org.eclipse.paho.client.mqttv3-1.2.1.jar!/:na]
at org.eclipse.paho.client.mqttv3.internal.ClientState.checkForActivity(ClientState.java:741) ~[org.eclipse.paho.client.mqttv3-1.2.1.jar!/:na]
at org.eclipse.paho.client.mqttv3.internal.ClientComms.checkForActivity(ClientComms.java:816) ~[org.eclipse.paho.client.mqttv3-1.2.1.jar!/:na]
at org.eclipse.paho.client.mqttv3.internal.ClientComms.checkForActivity(ClientComms.java:802) ~[org.eclipse.paho.client.mqttv3-1.2.1.jar!/:na]
at org.eclipse.paho.client.mqttv3.TimerPingSender$PingTask.run(TimerPingSender.java:79) ~[org.eclipse.paho.client.mqttv3-1.2.1.jar!/:na]
at java.util.TimerThread.mainLoop(Timer.java:555) ~[na:1.8.0_221]
at java.util.TimerThread.run(Timer.java:505) ~[na:1.8.0_221]
mqtt报错,无法订阅topic
报错原因,由于服务重启导致IP变了,mqtt服务校验出现问题,在docker配置中关闭校验或者重新配置新的校验地址。直接部署服务应该也有相关配置。
environment:
# EMQX_LOADED_PLUGINS: emqx_recon,emqx_auth_http,emqx_web_hook
更多推荐
已为社区贡献1条内容
所有评论(0)