webhook可以命中,但无法发送

2023-03-10T10:50:33.994000+08:00 [warning] msg: cluster_rpc_apply_result, mfa: emqx_cluster_rpc:log_and_alarm/3, line: 500, entrypoint: <<“emqx:update_config/3”>>, kind: initiate, result: {error,#{kind => validation_error,path => “rule_engine.rules.rule_iasu.sql”,reason => {lex_error,{2,sql_lex,{illegal,“”}}},value => <<“SELECT\n payload as p\nFROM\n "3HC/PUMP1/DATA"”/utf8>>}}, tnx_id: 2

2023-03-10T10:50:33.994000+08:00 [error] msg: create_rule_failed, mfa: emqx_rule_engine_api:/rules/2, line: 340, id: <<“rule_iasu”>>, reason: #{kind => validation_error,path => “rule_engine.rules.rule_iasu.sql”,reason => {lex_error,{2,sql_lex,{illegal,“”}}},value => <<“SELECT\n payload as p\nFROM\n "3HC/PUMP1/DATA"”/utf8>>}
2023-03-10T10:51:08.942000+08:00 [error] msg: http_connector_get_status_failed, mfa: emqx_connector_http:do_get_status/2, line: 422, reason: econnrefused, worker: <0.4767.0>
2023-03-10T10:51:08.942000+08:00 [error] msg: http_connector_get_status_failed, mfa: emqx_connector_http:do_get_status/2, line: 422, reason: econnrefused, worker: <0.4768.0>
2023-03-10T10:51:08.942000+08:00 [error] msg: http_connector_get_status_failed, mfa: emqx_connector_http:do_get_status/2, line: 422, reason: econnrefused, worker: <0.4769.0>
2023-03-10T10:51:08.943000+08:00 [error] msg: http_connector_get_status_failed, mfa: emqx_connector_http:do_get_status/2, line: 422, reason: econnrefused, worker: <0.4770.0>
2023-03-10T10:51:08.943000+08:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3, line: 416, message: <<“resource down: bridge:webhook:my_webhook01”>>, name: <<“bridge:webhook:my_webhook01”>>
2023-03-10T10:51:08.943000+08:00 [warning] msg: health_check_failed, mfa: emqx_resource_manager:handle_connected_health_check/1, line: 555, id: <<“bridge:webhook:my_webhook01”>>, status: disconnected
2023-03-10T10:51:49.574000+08:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3, line: 422, name: <<“bridge:webhook:my_webhook01”>>
2023-03-10T14:33:19.643000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 831, id: <<“bridge:webhook:my_webhook02”>>, reason: normal
2023-03-10T14:33:49.469000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 831, id: <<“bridge:webhook:my_webhook02”>>, reason: normal
2023-03-10T14:48:06.531000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 831, id: <<“bridge:webhook:my_webhook01”>>, reason: normal

环境

  • EMQX 版本:开源版 5.0.19
  • 操作系统版本:Windows

重现此问题的步骤

webhook能正确命中,但无法正常发送,用flask写的小程序无法正常获取消息,有时连续获得,有时无法获得,重连之后会一下子接收近期的部分消息




预期行为

实际行为


功能请求

描述你需要的功能

为什么你需要这个功能


其他

请问如何解决啊?webhook获取的特别不稳定啊

这是一个 Bug,KeepAlive 到期时对端关闭连接,EMQX 应该直接重连的,但现在直接抛出错误来了。

之前社区也有用户反馈过,但目前还未修复。

其他的日志看起来主要还是 EMQX 和 WebHook Server 的连接不稳定,经常处于连接断开的状态。

十分感谢
那这个问题可能的原因是什么呢?也是那个bug造成的么?

econnrefused 这是连接被拒绝的意思,需要检查了你 Server 端的设置,有没有限制连接数量、连接速率等等

最新版的 5.20 是不是修复了?

感谢 我查看试试~

楼主解决了?我目前遇到这个问题,一开始可以收到发布的消息,过一段时间就收不到了,客户端也没断