环境信息
- EMQX 版本: emqx-5.0.3-el8-amd64.rpm
- 操作系统及版本:centos7
- 其他
问题描述
参照官方文档 https://www.emqx.io/docs/zh/v4.3/advanced/lang-exhook.html#接口设计 下载的 https://github.com/emqx/emqx-extension-examples 中的 exhook-svr-java项目,运行起来后添加到emqx的后台管理中的 ExHook中,一直显示连接中,请问是不是5.0还不支持exhook?
配置文件及日志
2022-07-21T14:55:40.009125+08:00 [error] line: 338, mfa: emqx_exhook_mgr:do_load_server/1, msg: failed_to_load_exhook_callback_server, name: <<“a”>>, reason: {bad_server_url,<<“192.168.15.123:9000”>>,{error,invalid_uri,":"}}
2022-07-21T14:56:02.244321+08:00 [error] Unexecpted stream event: {gun_response,<0.3899.17>,#Ref<0.3401960444.2165571589.218722>,fin,200,[{<<“content-type”>>,<<“application/grpc”>>},{<<“grpc-status”>>,<<“12”>>},{<<“grpc-message”>>,<<“Method not found: emqx.exhook.v2.HookProvider/OnProviderLoaded”>>}]}, stream #{encoding => identity,hangs => [{{<0.2659.0>,#Ref<0.3401960444.2165571589.218724>},1658386567242}],mqueue => [],recvbuff => <<>>,st => {closed,idle}}
2022-07-21T14:56:07.243380+08:00 [error] function: on_provider_loaded, line: 406, mfa: emqx_exhook_server:do_call/5, module: emqx_exhook_v_2_hook_provider_client, msg: exhook_call_error, options: #{channel => <<“a”>>,failed_action => deny,timeout => 5000}, reason: {deadline_exceeded,<<“Waiting for response timeout”>>}, req: #{broker => #{datetime => “2022-07-21T14:56:02.241426662+08:00”,sysdescr => “EMQX”,uptime => 65998380,version => “5.0.3”},meta => #{cluster_name => “emqxcl”,node => <<“emqx127.0.0.1”>>,sysdescr => “EMQX”,version => “5.0.3”}}
2022-07-21T14:56:07.244338+08:00 [error] line: 338, mfa: emqx_exhook_mgr:do_load_server/1, msg: failed_to_load_exhook_callback_server, name: <<“a”>>, reason: {deadline_exceeded,<<“Waiting for response timeout”>>}
2022-07-21T14:57:07.249465+08:00 [error] Unexecpted stream event: