emqx3.1 出现这个连接错误该怎么处理

2024-08-13T23:40:03.729338+00:00 [PUBLISH] M43032352304B41310669FF32@172.17.0.1:62078 msg: publish_to, topic: hub/machine/M43032352304B41310669FF32, payload: {“hum”:“71.10”,“temp”:“32.00”,“speed”:“0.000000”,“length”:“74014.00”,“coefficient”:“0.073”,“connect”:“1”,“chipid”:“43032352304B41310669FF32”,“ip”:“”}
2024-08-13T23:40:03.729425+00:00 [BRIDGE] M43032352304B41310669FF32@172.17.0.1:62078 msg: bridge_action, bridge_id: {bridge_v2,http,influxdb}
2024-08-13T23:40:09.813986+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2024-08-13T23:40:09.814160+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2024-08-13T23:40:19.010480+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2024-08-13T23:40:19.010661+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2024-08-13T23:40:28.207786+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2024-08-13T23:40:28.207942+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2024-08-13T23:40:37.400723+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2024-08-13T23:40:37.400901+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2024-08-13T23:40:46.635880+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2024-08-13T23:40:46.636051+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2024-08-13T23:40:55.832949+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2024-08-13T23:40:55.833036+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2024-08-13T23:41:05.056959+00:00 [MQTT] M43032352304B41310669FF32@172.17.0.1:62078 msg: mqtt_packet_received, packet: {frame_error,#{header_type => 12,hint => malformed_packet}}
2024-08-13T23:41:05.057120+00:00 [SOCKET] M43032352304B41310669FF32@172.17.0.1:62078 msg: socket_force_closed, reason: [header_type: 12, hint: malformed_packet]
2024-08-13T23:41:05.057719+00:00 [BRIDGE] M43032352304B41310669FF32@172.17.0.1:62078 msg: bridge_action, bridge_id: {bridge_v2,http,machinedis}
2024-08-13T23:41:05.057958+00:00 [SOCKET] M43032352304B41310669FF32@172.17.0.1:62078 msg: emqx_connection_terminated, reason: {shutdown,#{header_type => 12,hint => malformed_packet}}

frame_error malformed_packet,是说收到不符合协议的 MQTT 报文。具体你可以抓包分析一下看看报文内容。

1 个赞