Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes the crash like below:
2024-09-06T11:55:41.141104+02:00 [warning] reason: {case_clause,{error,{config_update_crashed,#{reason => failed_to_check_field,path => "actions",exception => {case_clause,{[<<"webhook">>
,<<"webhook">>,<<"webhook">>,<<"webhook">>,<<"webhook">>,<<"webhook">>],[<<"webhook1">>]}},field => <<"http">>}}}}, path: /actions, stacktrace: [{emqx_bridge_v2_api,do_create_or_update_br
idge,5,[{file,"emqx_bridge_v2_api.erl"},{line,1439}]},{minirest_handler,apply_callback,3,[{file,"minirest_handler.erl"},{line,158}]},{minirest_handler,handle,2,[{file,"minirest_handler.er
l"},{line,56}]},{minirest_handler,init,2,[{file,"minirest_handler.erl"},{line,27}]},{cowboy_handler,execute,2,[{file,"cowboy_handler.erl"},{line,41}]},{cowboy_stream_h,execute,3,[{file,"c
owboy_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,241}]}],