用户连接时,未收到连接事件回调

版本: 5.5.0
系统:centos7
问题描述:服务器设置了连接断开和连接建立的事件回调,日志显示在15点37分时有设备登录,但接口并没有收到这次的请求(其他的连接建立和断开都有正常收到)
配置:

日志:
2024-06-03T15:37:56.377109+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_channel:handle_in/2(332), peername:*******, clientid: MOWER_e4-54-e8-db-d1-62, packet: CONNECT(Q0, R0, D0, ClientId=MOWER_e4-54-e8-db-d1-62, ProtoName=MQTT, ProtoVsn=4, CleanStart
=true, KeepAlive=20, Username=admin, Password=
), tag: MQTT

有完整的日志文件么,这里开了 debug 应该能看到后续发生了什么的

补充:
2024-06-03T15:37:56.377109+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_channel:handle_in/2(332), peername:*, clientid: MOWER_e4-54-e8-db-d1-62, packet: CONNECT(Q0, R0, D0, ClientId=MOWER_e4-54-e8-db-d1-62, ProtoName=MQTT, ProtoVsn=4, CleanStart
=true, KeepAlive=20, Username=admin, Password=
), tag: MQTT
2024-06-03T15:37:56.377273+08:00 [debug] msg: authenticator_result, mfa: emqx_authn_chains:authenticate_with_provider/2(690), peername: *********, clientid: MOWER_e4-54-e8-db-d1-62, tag: AUTHN, result: {ok,#{is_superuser => false}}, authenticator: <<“password_
based:built_in_database”>>
2024-06-03T15:37:56.377423+08:00 [debug] msg: authentication_result, mfa: emqx_authn_chains:authenticate/2(166), peername: ***********, clientid: MOWER_e4-54-e8-db-d1-62, reason: chain_result, tag: AUTHN, result: {stop,{ok,#{is_superuser => false}}}
2024-06-03T15:37:56.377800+08:00 [debug] msg: bridge_action, mfa: emqx_rule_runtime:do_handle_action/4(371), peername: *****, clientid: MOWER_e4-54-e8-db-d1-62, tag: BRIDGE, bridge_id: {bridge_v2,http,connect_WH_D}
2024-06-03T15:37:56.378065+08:00 [debug] msg: insert_channel_info, mfa: emqx_cm:insert_channel_info/3(164), peername: , clientid: MOWER_e4-54-e8-db-d1-62
2024-06-03T15:37:56.378228+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(885), peername: 172.22.111.77:39582, clientid: MOWER_e4-54-e8-db-d1-62, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0), tag: MQTT
2024-06-03T15:37:56.378162+08:00 [debug] msg: http_connector_received, mfa: emqx_bridge_http_connector:on_query_async/4(471), tag: QUERY_ASYNC, request: {“control/mqtt/receive/notice”,[{<<“content-type”>>,<<“application/json”>>},{<<“keep-alive”>>,<<“timeout=5”>>},{<<“co
ntent-type”>>,<<“application/json”>>},{<<“cache-control”>>,<<“no-cache”>>},{<<“connection”>>,<<“keep-alive”>>},{<<“accept”>>,<<“application/json”>>}],<<"
">>}, state: #{port => 10210,request => #{path => [<<“control/mqtt/receive/notice”>>],body => undefined,headers
=> [{[<<“content-type”>>],[<<“application/json”>>]}],method => [<<“undefined”>>],max_retries => 2,request_timeout => 30000},host => {
},connect_timeout => 15000,pool_type => random,pool_name => <<“connector:http:connect_WH_D”>>,base_path => “/”,installed_ac
tions => #{<<“action:http:connect_WH_D:connector:http:connect_WH_D”>> => #{path => [<<>>],body => undefined,headers => [{[<<“keep-alive”>>],[<<“timeout=5”>>]},{[<<“content-type”>>],[<<“application/json”>>]},{[<<“cache-control”>>],[<<“no-cache”>>]},{[<<“connection”>>],[<
<“keep-alive”>>]},{[<<“accept”>>],[<<“application/json”>>]}],method => [<<“post”>>],max_retries => 2,request_timeout => 30000,render_template_func => fun emqx_bridge_http_connector:render_template/2}}}, connector: <<“connector:http:connect_WH_D”>>, note: the request bod
y is redacted due to security reasons

补充:
2024-06-03T15:37:56.377109+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_channel:handle_in/2(332), peername:*, clientid: MOWER_e4-54-e8-db-d1-62, packet: CONNECT(Q0, R0, D0, ClientId=MOWER_e4-54-e8-db-d1-62, ProtoName=MQTT, ProtoVsn=4, CleanStart
=true, KeepAlive=20, Username=admin, Password=
), tag: MQTT
2024-06-03T15:37:56.377273+08:00 [debug] msg: authenticator_result, mfa: emqx_authn_chains:authenticate_with_provider/2(690), peername: *********, clientid: MOWER_e4-54-e8-db-d1-62, tag: AUTHN, result: {ok,#{is_superuser => false}}, authenticator: <<“password_
based:built_in_database”>>
2024-06-03T15:37:56.377423+08:00 [debug] msg: authentication_result, mfa: emqx_authn_chains:authenticate/2(166), peername: ***********, clientid: MOWER_e4-54-e8-db-d1-62, reason: chain_result, tag: AUTHN, result: {stop,{ok,#{is_superuser => false}}}
2024-06-03T15:37:56.377800+08:00 [debug] msg: bridge_action, mfa: emqx_rule_runtime:do_handle_action/4(371), peername: *****, clientid: MOWER_e4-54-e8-db-d1-62, tag: BRIDGE, bridge_id: {bridge_v2,http,connect_WH_D}
2024-06-03T15:37:56.378065+08:00 [debug] msg: insert_channel_info, mfa: emqx_cm:insert_channel_info/3(164), peername: , clientid: MOWER_e4-54-e8-db-d1-62
2024-06-03T15:37:56.378228+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(885), peername: 172.22.111.77:39582, clientid: MOWER_e4-54-e8-db-d1-62, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0), tag: MQTT
2024-06-03T15:37:56.378162+08:00 [debug] msg: http_connector_received, mfa: emqx_bridge_http_connector:on_query_async/4(471), tag: QUERY_ASYNC, request: {“control/mqtt/receive/notice”,[{<<“content-type”>>,<<“application/json”>>},{<<“keep-alive”>>,<<“timeout=5”>>},{<<“co
ntent-type”>>,<<“application/json”>>},{<<“cache-control”>>,<<“no-cache”>>},{<<“connection”>>,<<“keep-alive”>>},{<<“accept”>>,<<“application/json”>>}],<<“
”>>}, state: #{port => 10210,request => #{path => [<<“control/mqtt/receive/notice”>>],body => undefined,headers
=> [{[<<“content-type”>>],[<<“application/json”>>]}],method => [<<“undefined”>>],max_retries => 2,request_timeout => 30000},host => {
},connect_timeout => 15000,pool_type => random,pool_name => <<“connector:http:connect_WH_D”>>,base_path => “/”,installed_ac
tions => #{<<“action:http:connect_WH_D:connector:http:connect_WH_D”>> => #{path => [<<>>],body => undefined,headers => [{[<<“keep-alive”>>],[<<“timeout=5”>>]},{[<<“content-type”>>],[<<“application/json”>>]},{[<<“cache-control”>>],[<<“no-cache”>>]},{[<<“connection”>>],[<
<“keep-alive”>>]},{[<<“accept”>>],[<<“application/json”>>]}],method => [<<“post”>>],max_retries => 2,request_timeout => 30000,render_template_func => fun emqx_bridge_http_connector:render_template/2}}}, connector: <<“connector:http:connect_WH_D”>>, note: the request bod
y is redacted due to security reasons

从这个日志上看,登录后就发直接触发了规则了

但我这边没收到

如果http调用失败,emqx客户端会报错吗

http 调用失败会有 warningerror 日志