Parse failed for function_clause

环境信息

  • EMQX 版本:V3.2.4
  • 操作系统及版本:win Server 2016
  • 其他

问题描述

日志有报错,不知道什么意思。

配置文件及日志

Parse failed for function_clause

                 Stacktrace:[{emqx_frame,parse_packet,
                                 [{mqtt_packet_header,4,false,3,true},
                                  <<"T / HTTP/1.1\r\nHost: x.x.x.x:8883\r\ncache-control: no-cache\r\ncon">>,
                                  #{max_size => 1048576,version => 4}],
                                 [{file,
                                      "c:/emqx/ce/emqx-rel/_build/emqx/lib/emqx/src/emqx_frame.erl"},
                                  {line,147}]},
                             {emqx_frame,parse_frame,4,
                                 [{file,
                                      "c:/emqx/ce/emqx-rel/_build/emqx/lib/emqx/src/emqx_frame.erl"},
                                  {line,126}]},
                             {emqx_channel,process_incoming,3,
                                 [{file,
                                      "c:/emqx/ce/emqx-rel/_build/emqx/lib/emqx/src/emqx_channel.erl"},
                                  {line,415}]},
                             {gen_statem,call_state_function,5,
                                 [{file,"gen_statem.erl"},{line,1660}]},
                             {gen_statem,loop_event_state_function,6,
                                 [{file,"gen_statem.erl"},{line,1023}]},
                             {proc_lib,init_p_do_apply,3,
                                 [{file,"proc_lib.erl"},{line,249}]}]

你将 HTTP 消息,发送到 MQTT 端口上了,你检查下是端口配置错了,还是 HTTP 代理配置错了