EMQ 问答社区

web_hook没推送连接上connected的事件

问题描述

  • 客户端连接上了,在dashboard看到已连接的状态,但是webhook会出现没有推送事件,这个不是必现的

环境信息

  • EMQ X 版本:4.2.10
  • 操作系统及版本:linux cenos 8
  • 其他

相应的配置文件内容

web.hook.api.url = http://172.31.0.35:8849/webhook

## Encode message payload field
##
## Value: base64 | base62
##
## Default: undefined
## web.hook.encode_payload = base64

web.hook.rule.client.connected.1     = {"action": "on_client_connected"}
web.hook.rule.client.disconnected.1  = {"action": "on_client_disconnected"}
web.hook.rule.session.subscribed.1   = {"action": "on_session_subscribed"}
web.hook.rule.session.unsubscribed.1 = {"action": "on_session_unsubscribed"}

详细日志

2021-04-28 04:09:17.217 [error] <<"0_90043992_utv_144864_1619575874051">>@119.145.83.20:14853 [Channel] Unexpected sock_closed: tcp_closed
2021-04-28 04:09:17.217 [error] <<"0_90043992_utv_144864_1619575874051">>@119.145.83.20:14853 [Channel] Unexpected sock_closed: einval
2021-04-28 04:09:17.217 [error] <<"0_90043992_utv_144864_1619575874051">>@119.145.83.20:14853 [Channel] Unexpected sock_closed: einval
2021-04-28 04:09:17.217 [error] <<"0_90043992_utv_144864_1619575874051">>@119.145.83.20:14853 [Channel] Unexpected sock_closed: einval

相关截图

很抱歉没有及时回复您,请问更详细的日志吗?