Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: no alias for map fields #300

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

zmstone
Copy link
Member

@zmstone zmstone commented Sep 6, 2024

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}]}],

@zmstone zmstone force-pushed the 0906-no-alias-for-map-fields branch from 1730d9d to 309714d Compare September 6, 2024 10:39
@zmstone zmstone force-pushed the 0906-no-alias-for-map-fields branch from 309714d to 19b3382 Compare September 6, 2024 10:39
@zmstone zmstone merged commit 3f663c7 into emqx:master Sep 6, 2024
3 checks passed
@zmstone zmstone deleted the 0906-no-alias-for-map-fields branch September 6, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants