单机测试webhook,数据抓取不成功,新手求助

错误报告

2023-03-14T08:14:04.437000+08:00 [error] msg: http_connector_get_status_failed, mfa: emqx_connector_http:do_get_status/2, line: 422, reason: econnrefused, worker: <0.3058.0>
2023-03-14T08:14:04.437000+08:00 [error] msg: http_connector_get_status_failed, mfa: emqx_connector_http:do_get_status/2, line: 422, reason: econnrefused, worker: <0.3061.0>
2023-03-14T08:14:04.437000+08:00 [error] msg: http_connector_get_status_failed, mfa: emqx_connector_http:do_get_status/2, line: 422, reason: econnrefused, worker: <0.3060.0>
2023-03-14T08:14:04.438000+08:00 [error] msg: http_connector_get_status_failed, mfa: emqx_connector_http:do_get_status/2, line: 422, reason: econnrefused, worker: <0.3059.0>
2023-03-14T08:14:04.438000+08:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3, line: 416, message: <<“resource down: bridge:webhook:my_webhook2”>>, name: <<“bridge:webhook:my_webhook2”>>
2023-03-14T08:14:04.438000+08:00 [warning] msg: health_check_failed, mfa: emqx_resource_manager:handle_connected_health_check/1, line: 555, id: <<“bridge:webhook:my_webhook2”>>, status: disconnected
2023-03-14T08:14:12.257000+08:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3, line: 416, message: <<“resource down: bridge:webhook:my_webhook1”>>, name: <<“bridge:webhook:my_webhook1”>>
2023-03-14T08:14:12.257000+08:00 [warning] msg: health_check_failed, mfa: emqx_resource_manager:handle_connected_health_check/1, line: 555, id: <<“bridge:webhook:my_webhook1”>>, status: disconnected
2023-03-14T08:15:04.451000+08:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3, line: 422, name: <<“bridge:webhook:my_webhook2”>>
2023-03-14T08:15:12.269000+08:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3, line: 422, name: <<“bridge:webhook:my_webhook1”>>
2023-03-14T08:20:12.627000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:22:08.510000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook02”>>, reason: normal, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezii2122\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:22:08.510000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook02”>>, reason: normal
2023-03-14T08:22:08.522000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook01”>>, reason: normal, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezi3112\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:22:08.522000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook01”>>, reason: normal
2023-03-14T08:22:25.895000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:22:25.895000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:22:25.895000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:22:25.895000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:22:25.903000+08:00 [warning] msg: unknown_async_reply_discarded, mfa: emqx_resource_buffer_worker:maybe_handle_unknown_async_reply/3, line: 1227, inflight_key: 785667239000
2023-03-14T08:22:25.918000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook02”>>, reason: normal, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezii2122\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:22:25.918000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook02”>>, reason: normal
2023-03-14T08:22:25.921000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook01”>>, reason: normal, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezi3112\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:22:25.921000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook01”>>, reason: normal
2023-03-14T08:22:25.935000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook02”>>, reason: normal, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezii2122\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:22:36.076000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook02”>>, reason: {shutdown,normal}
2023-03-14T08:22:36.079000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook02”>>, reason: {shutdown,normal}
2023-03-14T08:22:36.080000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook02”>>, reason: normal, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezii2122\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:22:36.081000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook02”>>, reason: normal
2023-03-14T08:29:51.790000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook02”>>, reason: timeout
2023-03-14T08:29:51.791000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook02”>>, reason: {recoverable_error,timeout}
2023-03-14T08:29:51.795000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook02”>>, reason: {shutdown,normal}
2023-03-14T08:29:53.987000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook01”>>, reason: {ehttpc_worker_down,{shutdown,{gen_server,call,[<0.4775.0>,{post,{<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezi3112\",\"date_time\":\"2023-03-09\"}"}”>>},1678753795646},15500]}}}, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezi3112\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:29:53.987000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook01”>>, reason: {ehttpc_worker_down,{shutdown,{gen_server,call,[<0.4775.0>,{post,{<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezi3112\",\"date_time\":\"2023-03-09\"}"}”>>},1678753795646},15500]}}}
2023-03-14T08:29:54.018000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook01”>>, info: resource stopped or disabled
2023-03-14T08:29:54.020000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook01”>>, info: resource stopped or disabled
2023-03-14T08:29:54.022000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook01”>>, info: resource stopped or disabled
2023-03-14T08:29:54.027000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook01”>>, info: resource stopped or disabled
2023-03-14T08:29:54.028000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook01”>>, info: resource stopped or disabled
2023-03-14T08:29:54.029000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook01”>>, info: resource stopped or disabled
2023-03-14T08:29:54.029000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook01”>>, info: resource stopped or disabled
2023-03-14T08:30:13.094000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook02”>>, reason: normal, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezi3112\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:30:13.094000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook02”>>, reason: normal
2023-03-14T08:30:29.779000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook01”>>, reason: {ehttpc_worker_down,{shutdown,{gen_server,call,[<0.6434.0>,{post,{<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezii2122\",\"date_time\":\"2023-03-09\"}"}”>>},1678753839765},15500]}}}, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezii2122\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:30:29.780000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook01”>>, reason: {ehttpc_worker_down,{shutdown,{gen_server,call,[<0.6434.0>,{post,{<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezii2122\",\"date_time\":\"2023-03-09\"}"}”>>},1678753839765},15500]}}}
2023-03-14T08:30:29.781000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook01”>>, info: resource stopped or disabled
2023-03-14T08:30:29.781000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook01”>>, info: resource stopped or disabled
2023-03-14T08:30:29.781000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook01”>>, info: resource stopped or disabled

2023-03-14T08:30:31.665000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook02”>>, reason: {ehttpc_worker_down,{shutdown,{gen_server,call,[<0.6464.0>,{post,{<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezii2122\",\"date_time\":\"2023-03-09\"}"}”>>},1678753841130},15500]}}}, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezii2122\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:30:31.665000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook02”>>, reason: {ehttpc_worker_down,{shutdown,{gen_server,call,[<0.6464.0>,{post,{<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezii2122\",\"date_time\":\"2023-03-09\"}"}”>>},1678753841130},15500]}}}
2023-03-14T08:30:31.666000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook02”>>, info: resource stopped or disabled
2023-03-14T08:30:31.666000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook02”>>, info: resource stopped or disabled
2023-03-14T08:30:31.666000+08:00 [error] msg: resource_stopped, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 818, id: <<“bridge:webhook:my_webhook02”>>, info: resource stopped or disabled
2023-03-14T08:38:42.803000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:38:42.803000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:38:58.318000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:38:58.318000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:38:58.326000+08:00 [error] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 322, connector: <<“bridge:webhook:my_webhook01”>>, reason: normal, request: {<<“/mqtt/webhook”>>,[{<<“content-type”>>,<<“application/json”>>}],<<“{"p":"{\"pmame\":\"dezi3112\",\"date_time\":\"2023-03-09\"}"}”>>}
2023-03-14T08:38:58.327000+08:00 [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 834, id: <<“bridge:webhook:my_webhook01”>>, reason: normal
2023-03-14T08:39:13.831000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:39:13.831000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:39:29.335000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:39:29.335000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:39:39.267000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:39:39.268000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:39:44.848000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:39:44.848000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:39:54.776000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:39:54.776000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:40:00.355000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:40:00.355000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:40:10.287000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:40:10.288000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:40:14.879000+08:00 [warning] msg: session_stepdown_request_timeout, mfa: emqx_cm:request_stepdown/3, line: 480, action: discard, pid: <0.3623.0>, stale_channel: [{status,waiting},{message_queue_len,72},{current_stacktrace,[{emqx_resource_buffer_worker,pick_call,4,[{file,“emqx_resource_buffer_worker.erl”},{line,309}]},{emqx_rule_runtime,do_handle_action,3,[{file,“emqx_rule_runtime.erl”},{line,353}]},{emqx_rule_runtime,handle_action,4,[{file,“emqx_rule_runtime.erl”},{line,329}]},{emqx_rule_runtime,‘-handle_action_list/4-lc$^0/1-0-’,4,[{file,“emqx_rule_runtime.erl”},{line,324}]},{emqx_rule_runtime,do_apply_rule,3,[{file,“emqx_rule_runtime.erl”},{line,183}]},{emqx_rule_runtime,apply_rule,3,[{file,“emqx_rule_runtime.erl”},{line,75}]},{emqx_rule_runtime,apply_rule_discard_result,3,[{file,“emqx_rule_runtime.erl”},{line,68}]},{emqx_rule_runtime,apply_rules,3,[{file,“emqx_rule_runtime.erl”},{line,64}]},{emqx_rule_events,on_message_publish,2,[{file,“emqx_rule_events.erl”},{line,140}]},{emqx_hooks,safe_execute,2,[{file,“emqx_hooks.erl”},{line,200}]},{emqx_hooks,do_run_fold,3,[{file,“emqx_hooks.erl”},{line,180}]},{emqx_broker,publish,1,[{file,“emqx_broker.erl”},{line,222}]},{emqx_channel,do_publish,3,[{file,“emqx_channel.erl”},{line,731}]},{emqx_connection,with_channel,3,[{file,“emqx_connection.erl”},{line,835}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,487}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,493}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,449}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}]}]
2023-03-14T08:40:15.864000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook01”>>, reason: timeout
2023-03-14T08:40:15.864000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook01”>>, reason: {recoverable_error,timeout}
2023-03-14T08:40:21.835000+08:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_connector_http:on_query/3, line: 314, connector: <<“bridge:webhook:my_webhook02”>>, reason: timeout
2023-03-14T08:40:21.835000+08:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3, line: 842, id: <<“bridge:webhook:my_webhook02”>>, reason: {recoverable_error,timeout}

环境

  • EMQX 版本:开源版 5.0.20
  • 操作系统版本:win10

重现此问题的步骤

正常客户端发送到服务端的主题,在webhook中大量丢弃,正确发送的十不存一,因为是本机操作http server也是127.0.0.1,完全不知道是是操作配置问题还是什么其他问题,求助



这个是 WebHook 的请求无法到达,可能是你的地址填错了,也可能是对应的 Web 服务器没有开启,或者拒绝了 HTTP 请求。

可是有时候偶尔也会有一两条的消息获取到,因为是本机测试不清楚这个web服务或者哪里设置错了。。感觉要是设置错误应该所有消息都接收不到才对

我是用这种方式做的,因为不是很熟悉,都是模仿的写的,所以错误自己就很难找到。
@app.route(‘/mqtt/webhook’,methods=[‘POST’])
def webhook():
if request.method == ‘POST’:
if request.json is not None:
body = request.json
print(request.json)
print(json.loads(body[“p”]))
print(‘kkk2’)
return ‘201’

2023-03-14T08:14:04.438000+08:00 [warning] msg: health_check_failed, mfa: emqx_resource_manager:handle_connected_health_check/1, line: 555, id: <<“bridge:webhook:my_webhook2”>>, status: disconnected

2023-03-14T08:14:12.257000+08:00 [warning] msg: health_check_failed, mfa: emqx_resource_manager:handle_connected_health_check/1, line: 555, id: <<“bridge:webhook:my_webhook1”>>, status: disconnected

注意到日志里面有这两条,EMQX 认为你的 WebHook 资源连不上。
可以先用 postman 之类的 API 工具调一下你的 WebHook 接口。看看 WebHook 服务的具体情况。

改为4.4.16版本后一切正常了~不晓得什么问题,但是似乎5.0开源版本 webhook部分有bug~