emqx的webhook功能开启一段时间不能使用

windows Server服务器部署的开源版5.3.0版本,用webhook做转发消息指http,出现开启一段时间不能使用,需要关闭重新开启一下日志也下载下来没看出来什么原因
报错信息
2025-01-03T07:11:04.155000+08:00 [warning] msg: unknown_async_reply_discarded, mfa: emqx_resource_buffer_worker:maybe_handle_unknown_async_reply/3(1411), inflight_key: 22585686463034179
2025-01-03T07:11:09.706000+08:00 [warning] msg: unknown_async_reply_discarded, mfa: emqx_resource_buffer_worker:maybe_handle_unknown_async_reply/3(1411), inflight_key: 22585691416130859
2025-01-03T07:11:09.709000+08:00 [warning] msg: unknown_async_reply_discarded, mfa: emqx_resource_buffer_worker:maybe_handle_unknown_async_reply/3(1411), inflight_key: 22585691666136718
2025-01-03T07:11:10.986000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:10.986000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:10.986000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:10.986000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:10.987000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:13.296000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:13.296000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:13.323000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:13.323000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:13.323000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:13.323000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:13.323000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”
2025-01-03T07:11:16.247000+08:00 [warning] msg: unknown_async_reply_discarded, mfa: emqx_resource_buffer_worker:maybe_handle_unknown_async_reply/3(1411), inflight_key: 22585698197290039
2025-01-03T07:11:16.562000+08:00 [warning] msg: unknown_async_reply_discarded, mfa: emqx_resource_buffer_worker:maybe_handle_unknown_async_reply/3(1411), inflight_key: 22585698072287109
2025-01-03T07:11:17.042000+08:00 [warning] Description: “Server authenticity is not verified since certificate path validation is not enabled”, Reason: “The option {verify, verify_peer} and one of the options ‘cacertfile’ or ‘cacerts’ are required to enable this.”

升级一下版本。用 windows 的就装 docker 或者直接用 wsl2 来装最新版本。

他这个日志是一些认证信息,跟我这个webhook功能搭边吗?目前是有好几个webhook功能,但是其中两个webhook功能老是出问题,需要启动下才能解决

都是用的 http 请求,共用的代码。

那这个是5.3.0的webhook功能bug吗,服务群里人说可能是超时连接问题

这是技术回复的 看看那两个webhook的目标服务器的超时设置,可能是连接超时了

就凭我看您提供日志中的错。直接意思是一个 request 要求规定X秒收到 response,但是他 X+1秒才返回,返回来的 reponse 找不到对应的 request 了。而且一旦出了这个超时后,后面就会再也收不到 response 了。
如果只是要解决这个超时问题,你可以试试把 timeout 加大一点试试。

上面的 PR,修复的问题是只要 request 没有收到 response 达到一定的数量,就会重建这条连接,所以无论他是超时引起,还是其它原因,都管用。
如果还是觉得不可信,建议实际测测。

目前不是解决超时问题,而是我看这段日志信息跟我的webhook不搭边,但还是下载下来了,目前主要原因是webhook功能无法使用


设置的这个配置应该很难出现超时的,线上服务今天是40分钟都无法恢复,重启了webhook才可以

目前不是解决超时问题,而是我看这段日志信息跟我的webhook不搭边,但还是下载下来了,目前主要原因是webhook功能无法使用

设置的这个配置应该很难出现超时的,线上服务今天是40分钟都无法恢复,重启了webhook才可以

是的,目前还没有从用户报过与您这相同的报错信息,有劳您这边也用测试环境帮测试一下新版本是否还有问题。以我对这个代码的理解,这个 PR 可以的。