StepFunctions: Better Error Messages For JSONPath Operations #12094
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.
Motivation
Errors occurring during JSONPath operations are currently not reported accurately #11951. Additionally, error messages lack consistency across different JSONPath operations, such as those involving JSON templates and fields like
InputPath
,OutputPath
,HeartbeatSecondsPath
, etc.. Assembling these error messages is non-trivial, as it requires including the relevant field name. This update introduces logic to enhance the clarity and consistency of these error messages, as well as adding tests. A limitation of these changes are the execution history produced in the case of errors withTimeoutSecondsPath
andHeartbeatSecondsPath
, as these appear to be computed at a state level. However, the error messages are still corrcetly formatted and reported.Changes
next_state_name
to ensure the reference to the program state instance being manipulated is not lost between it's validation and the action call