emqx/apps
Thales Macedo Garitezi 95de2d3467
fix(monitor): fix return value on badrpc
If the rpc in `emqx_dashboard_monitor_api:get_collect/1` fails, an
empty map is return.  But the current function expects a 4-tuple,
which results in a 500 error returned on such occasions.

```
curl -su admin:public localhost:8888/api/v5/monitor/current | jq .
{
  "code": "INTERNAL_ERROR",
  "message": "error, function_clause, [{emqx_dashboard_monitor_api,format_current_metrics,[[#{},{0,0,0,0},{0,0,0,0}],{0,0,0,0}],[{file,\"emqx_dashboard_monitor_api.erl\"},{line,179}]},{emqx_dashboard_monitor_api,current_counters,2,[{file,\"emqx_dashboard_monitor_api.erl\"},{line,167}]},{minirest_handler,apply_callback,3,[{file,\"minirest_handler.erl\"},{line,112}]},{minirest_handler,init,2,[{file,\"minirest_handler.erl\"},{line,38}]},{cowboy_handler,execute,2,[{file,\"cowboy_handler.erl\"},{line,41}]},{cowboy_stream_h,execute,3,[{file,\"cowboy_stream_h.erl\"},{line,318}]},{cowboy_stream_h,request_process,3,[{file,\"cowboy_stream_h.erl\"},{line,302}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,226}]}]"
}
```
2021-12-14 17:56:32 -03:00
..
emqx fix(monitor): fix return value on badrpc 2021-12-14 17:56:32 -03:00
emqx_authn Merge pull request #6384 from savonarola/refactor-password-hashing 2021-12-14 16:21:02 +03:00
emqx_authz refactor(authz): hide mnesia authz implementation details 2021-12-13 21:23:58 +03:00
emqx_auto_subscribe fix: add auto subscription swagger example 2021-11-24 16:47:33 +08:00
emqx_bridge fix(bridges): add new option 'enable' for bridge configs 2021-12-08 18:16:38 +08:00
emqx_conf Merge branch 'master' into feat-add-emqx-plugins-app 2021-12-13 22:28:03 +08:00
emqx_connector chore(otp): be compatibility with crypto in otp 24 2021-12-13 16:16:57 +08:00
emqx_dashboard fix(monitor): fix return value on badrpc 2021-12-14 17:56:32 -03:00
emqx_exhook chore: fix elvis warnings 2021-12-09 15:06:18 +08:00
emqx_gateway Merge pull request #6411 from HJianBo/gw-improve-apis-3 2021-12-10 16:52:49 +08:00
emqx_machine feat(system_monitor): Add system_monitor application 2021-12-08 16:34:10 +01:00
emqx_management feat(emqx_slow_sus): ported emqx_slow_subs from v4.4 2021-12-10 16:42:55 +08:00
emqx_modules test: fix emqx_rewrite_SUITE with new path info in schema check failure 2021-12-06 08:00:42 +01:00
emqx_plugin_libs fix(metrics): update testcases for plugin_libs_metrics 2021-12-07 10:12:04 +08:00
emqx_plugins docs: fix review comments for plugins config doc 2021-12-13 20:52:20 +01:00
emqx_prometheus Merge pull request #6394 from zmstone/fix-typo-in-hook-point-name 2021-12-07 21:06:30 +01:00
emqx_psk refactor: give psk auth a better namespace 2021-12-01 00:33:20 +01:00
emqx_resource fix(resource): update testcases for after_query functions 2021-11-23 10:41:45 +08:00
emqx_retainer fix: allow listener not_found before restart 2021-12-12 22:18:56 +01:00
emqx_rule_engine docs: change <module> to {module} so markdown render will not crash 2021-12-12 19:34:29 +01:00
emqx_slow_subs feat(emqx_slow_sus): ported emqx_slow_subs from v4.4 2021-12-10 16:42:55 +08:00
emqx_statsd emqx_conf (#5939) 2021-10-21 18:08:51 +08:00