You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astarte 1.2.0 added the trigger_name field to the HTTP trigger payload. Ash returns an error if unexpected inputs are received, so currently it returns an error if a trigger from an Astarte 1.2.0 instance is received.
This can be handled either explicitly adding trigger_name to the attributes here or adding an explicit :create action with skip_unknown_inputs: :*
The text was updated successfully, but these errors were encountered:
Astarte >= 1.2.0 sends an additional trigger_name key in the trigger payload.
This was making Edgehog crash since Ash doesn't accept additional input keys
by default.
Since 1.2.0 is the current stable version of Astarte, add the trigger_name key
to all existing tests and explicitly test support for the key missing to avoid
regressions with old Astarte versions.
Fixedgehog-device-manager#664
Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
rbino
added a commit
to rbino/edgehog
that referenced
this issue
Oct 28, 2024
Astarte >= 1.2.0 sends an additional trigger_name key in the trigger payload.
This was making Edgehog crash since Ash doesn't accept additional input keys
by default. Fix this allowing unknown keys to be accepted. This should
future-proof the trigger handler in case further additional keys are added in
the future.
Since 1.2.0 is the current stable version of Astarte, add the trigger_name key
to all existing tests and explicitly test support for the key missing to avoid
regressions with old Astarte versions.
Fixedgehog-device-manager#664
Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Astarte 1.2.0 added the
trigger_name
field to the HTTP trigger payload. Ash returns an error if unexpected inputs are received, so currently it returns an error if a trigger from an Astarte 1.2.0 instance is received.This can be handled either explicitly adding
trigger_name
to the attributes here or adding an explicit:create
action withskip_unknown_inputs: :*
The text was updated successfully, but these errors were encountered: