Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute on_client_connack action #10628

Closed
itweixiang opened this issue May 6, 2023 · 3 comments
Closed

Failed to execute on_client_connack action #10628

itweixiang opened this issue May 6, 2023 · 3 comments
Assignees
Labels

Comments

@itweixiang
Copy link

itweixiang commented May 6, 2023

What happened?

when I connect emqx server using error information .
emqx server logs encounter error .

What did you expect to happen?

I want to receive the on_client_connack message in the event of a client connection error so that we can troubleshoot client error messages

How can we reproduce it (as minimally and precisely as possible)?

using emqx:4.4.14 in docker

send an incorrect connection message to the server

# other http action request is normal using this url
web.hook.url = http://10.30.4.2:8090/call

web.hook.headers.content-type = application/json
web.hook.body.encoding_of_payload_field = plain
web.hook.pool_size = 32
web.hook.rule.client.connect.1       = {"action": "on_client_connect"}
web.hook.rule.client.connack.1       = {"action": "on_client_connack"}
web.hook.rule.client.connected.1     = {"action": "on_client_connected"}
web.hook.rule.client.disconnected.1  = {"action": "on_client_disconnected"}
web.hook.rule.client.subscribe.1     = {"action": "on_client_subscribe"}
web.hook.rule.client.unsubscribe.1   = {"action": "on_client_unsubscribe"}
web.hook.rule.session.subscribed.1   = {"action": "on_session_subscribed"}
web.hook.rule.session.unsubscribed.1 = {"action": "on_session_unsubscribed"}
web.hook.rule.session.terminated.1   = {"action": "on_session_terminated"}
# web.hook.rule.message.publish.1      = {"action": "on_message_publish"}
# web.hook.rule.message.delivered.1    = {"action": "on_message_delivered"}
# web.hook.rule.message.acked.1        = {"action": "on_message_acked"}

Anything else we need to know?

No response

EMQX version

emqx:4.4.14 in docker

OS version

$ cat /etc/os-release

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

$ uname -a

Linux sit 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Log files

2023-05-06T12:10:34.862791+00:00 [error] AF02013FF66B1600P@119.123.79.47:60710 [Hooks] Failed to execute {emqx_web_hook,on_client_connack,[{undefined}]}: {error,{badkey,connected_at},[{erlang,map_get,[connected_at,#{clean_start => true,clientid => <<"AF02013FF66B1600P">>,conn_mod => emqx_connection,conn_props => #{'Session-Expiry-Interval' => 0},expiry_interval => 0,keepalive => 60,peercert => nossl,peername => {{119,123,79,47},60710},proto_name => <<"MQTT">>,proto_ver => 5,receive_maximum => 32,sockname => {{10,30,4,2},1883},socktype => tcp,username => <<"BL1032DZXTPXN4AMss">>}],[{error_info,#{module => erl_erts_errors}}]},{emqx_web_hook,on_client_connack,4,[{file,"emqx_web_hook.erl"},{line,112}]},{emqx_hooks,safe_execute,2,[{file,"emqx_hooks.erl"},{line,214}]},{emqx_hooks,do_run_fold,3,[{file,"emqx_hooks.erl"},{line,193}]},{emqx_channel,handle_out,3,[{file,"emqx_channel.erl"},{line,1837}]},{emqx_connection,with_channel,3,[{file,"emqx_connection.erl"},{line,688}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,388}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,394}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,352}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]}
@itweixiang
Copy link
Author

没人理我。。

@terry-xiaoyu
Copy link
Contributor

Will be fixed in v4.4.19

@itweixiang
Copy link
Author

thanks for you reply , we are very much looking forward to emqx 4.4.19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants