emqx/apps
Thales Macedo Garitezi cc8631223e fix(schema): avoid function_clause error when compacting errors
Fixes https://emqx.atlassian.net/browse/EMQX-10168

The bridge probe API displayed the typecheck errors for the new
timeout duration types correctly, but when an user tried to create the
bridge anyway a `function_clause` error was raised when trying to
compact hocon errors:

```
09:47:19.045 [warning] [exception: :error, path: '/bridges', reason: {:case_clause, {:error, {:config_update_crashed, :function_clause}}}, stacktrace: [{:emqx_bridge_api, :create_or_update_bridge, 4, [file: '/home/thales/dev/emqx/emqx/apps/emqx_bridge/src/emqx_bridge_api.erl', line: 602]}, {:minirest_handler, :apply_callback, 3, [file: '/home/thales/dev/emqx/emqx/deps/minirest/src/minirest_handler.erl', line: 111]}, {:minirest_handler, :handle, 2, [file: '/home/thales/dev/emqx/emqx/deps/minirest/src/minirest_handler.erl', line: 44]}, {:minirest_handler, :init, 2, [file: '/home/thales/dev/emqx/emqx/deps/minirest/src/minirest_handler.erl', line: 27]}, {:cowboy_handler, :execute, 2, [file: '/home/thales/dev/emqx/emqx/deps/cowboy/src/cowboy_handler.erl', line: 41]}, {:cowboy_stream_h, :execute, 3, [file: '/home/thales/dev/emqx/emqx/deps/cowboy/src/cowboy_stream_h.erl', line: 318]}, {:cowboy_stream_h, :request_process, 3, [file: '/home/thales/dev/emqx/emqx/deps/cowboy/src/cowboy_stream_h.erl', line: 302]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 240]}]]
```

This fixes the issue so that both APIs return more friendly error messages.
2023-06-07 10:34:58 -03:00
..
emqx fix(schema): avoid function_clause error when compacting errors 2023-06-07 10:34:58 -03:00
emqx_authn Merge remote-tracking branch 'origin/master' into release-51 2023-06-02 16:25:48 +02:00
emqx_authz chore: remove config_path() function 2023-06-02 07:09:08 +08:00
emqx_auto_subscribe test: add test for delayed update 2023-05-31 08:17:29 +08:00
emqx_bridge Merge pull request #10932 from chore/drop-mqtt-mode-tests 2023-06-02 22:46:31 +03:00
emqx_bridge_cassandra Merge pull request #10910 from thalesmg/unify-restart-interval-v50 2023-06-02 16:20:36 -03:00
emqx_bridge_clickhouse chore: use timeout_duration types for timer fields 2023-06-05 11:46:38 -03:00
emqx_bridge_dynamo Merge pull request #10910 from thalesmg/unify-restart-interval-v50 2023-06-02 16:20:36 -03:00
emqx_bridge_gcp_pubsub feat(gcp_pubsub): generate jwt tokens on demand without workers (5.1) 2023-06-06 13:19:24 -03:00
emqx_bridge_hstreamdb chore: hide bad links in README files 2023-04-23 11:27:59 +08:00
emqx_bridge_influxdb feat: refactor influxdb connector to to avoid resources leaking 2023-06-04 02:21:49 +08:00
emqx_bridge_iotdb Merge pull request #10930 from thalesmg/max-int-timeout-v50 2023-06-05 12:51:36 -03:00
emqx_bridge_kafka chore: use timeout_duration types for timer fields 2023-06-05 11:46:38 -03:00
emqx_bridge_matrix chore: update changes && bump app versions 2023-05-10 17:23:26 +08:00
emqx_bridge_mongodb docs: fix invalid links 2023-05-15 11:18:09 +08:00
emqx_bridge_mqtt fix(mqttconn): no warn if ingress poolsize is same as config 2023-06-05 23:32:13 +03:00
emqx_bridge_mysql docs: fix invalid links 2023-05-15 11:18:09 +08:00
emqx_bridge_opents Merge pull request #10910 from thalesmg/unify-restart-interval-v50 2023-06-02 16:20:36 -03:00
emqx_bridge_oracle Merge pull request #10893 from paulozulato/fix-oracle-error-handling 2023-06-05 10:48:22 -03:00
emqx_bridge_pgsql refactor(resource): rename request_timeout -> request_ttl 2023-06-01 13:01:53 -03:00
emqx_bridge_pulsar chore: use timeout_duration types for timer fields 2023-06-05 11:46:38 -03:00
emqx_bridge_rabbitmq chore: use timeout_duration types for timer fields 2023-06-05 11:46:38 -03:00
emqx_bridge_redis docs: fix invalid links 2023-05-15 11:18:09 +08:00
emqx_bridge_rocketmq Merge pull request #10930 from thalesmg/max-int-timeout-v50 2023-06-05 12:51:36 -03:00
emqx_bridge_sqlserver Merge pull request #10910 from thalesmg/unify-restart-interval-v50 2023-06-02 16:20:36 -03:00
emqx_bridge_tdengine Merge pull request #10910 from thalesmg/unify-restart-interval-v50 2023-06-02 16:20:36 -03:00
emqx_bridge_timescale chore: update changes && bump app versions 2023-05-10 17:23:26 +08:00
emqx_conf Merge pull request #10943 from zmstone/0605-hide-mcast-cluster-discovery 2023-06-07 08:32:33 +02:00
emqx_connector feat(gcp_pubsub): generate jwt tokens on demand without workers (5.1) 2023-06-06 13:19:24 -03:00
emqx_ctl fix: reorder authn when updating 2023-06-01 17:24:39 +08:00
emqx_dashboard Merge pull request #10930 from thalesmg/max-int-timeout-v50 2023-06-05 12:51:36 -03:00
emqx_enterprise chore: bump app versions 2023-05-30 08:08:29 +02:00
emqx_eviction_agent test: use zone default in emqx_eviction_agent_channel_SUITE 2023-06-01 14:52:33 +02:00
emqx_exhook Merge pull request #10935 from zhongwencool/listeners-conf-update 2023-06-06 08:10:45 +08:00
emqx_ft fix(ft): set more conservative filename length limit 2023-06-06 10:40:20 +03:00
emqx_gateway fix(emqx_schema): don't allow enabling fail_if_no_peer_cert if verify_none is set 2023-06-06 17:20:22 +03:00
emqx_gateway_coap Merge pull request #10930 from thalesmg/max-int-timeout-v50 2023-06-05 12:51:36 -03:00
emqx_gateway_exproto feat(exproto): add raw_publish function 2023-05-31 13:44:51 +08:00
emqx_gateway_lwm2m chore: fix outdate tests 2023-06-02 13:30:03 +08:00
emqx_gateway_mqttsn fix(mqttsn): make mountpoint works for publish 2023-06-06 18:44:27 +08:00
emqx_gateway_stomp refactor: rename emqx_misc to emqx_utils 2023-04-14 13:41:27 +02:00
emqx_machine feat: add timezone_to_second/1 function to rule engine 2023-05-29 14:30:43 +02:00
emqx_management Merge remote-tracking branch 'origin/master' into release-51 2023-06-02 16:25:48 +02:00
emqx_modules test: add test for delayed update 2023-05-31 08:17:29 +08:00
emqx_node_rebalance chore: use timeout_duration types for timer fields 2023-06-05 11:46:38 -03:00
emqx_oracle Merge pull request #10893 from paulozulato/fix-oracle-error-handling 2023-06-05 10:48:22 -03:00
emqx_plugin_libs chore: update apps version && changes 2023-05-18 17:34:28 +08:00
emqx_plugins fix(plugins): use emqx:running_nodes for multicall operations 2023-06-01 14:00:43 -03:00
emqx_prometheus Merge pull request #10930 from thalesmg/max-int-timeout-v50 2023-06-05 12:51:36 -03:00
emqx_psk refactor: relocate i18n files for apps/emqx 2023-04-03 13:12:24 +02:00
emqx_resource fix(schema): avoid function_clause error when compacting errors 2023-06-07 10:34:58 -03:00
emqx_retainer chore: use timeout_duration types for timer fields 2023-06-05 11:46:38 -03:00
emqx_rule_engine chore: use timeout_duration types for timer fields 2023-06-05 11:46:38 -03:00
emqx_s3 chore: use timeout_duration types for timer fields 2023-06-05 11:46:38 -03:00
emqx_slow_subs chore: use timeout_duration types for timer fields 2023-06-05 11:46:38 -03:00
emqx_telemetry fix(emqx_telemetry): make dialyzer happy 2023-06-02 18:02:46 +02:00
emqx_utils feat: support emqx_conf:update([exhook],Conf) 2023-06-04 09:30:17 +08:00