-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
aws:stepfunctionsAWS Step FunctionsAWS Step Functionsstatus: response requiredWaiting for a response from the reporterWaiting for a response from the reportertype: bugBug reportBug report
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
With the following state machine, I see incorrect output for get-execution-history
:
{
"StartAt": "pass",
"States": {
"pass": {
"Type": "Pass",
"Next": "fail",
"Parameters": {
"Error": "error-value",
"Cause": "cause-value"
}
},
"fail": {
"Type": "Fail",
"ErrorPath": "$.ErrorX",
"CausePath": "$.Cause"
}
}
}
The output of a call to get-execution-history
has the incorrect entry (near the bottom):
"executionFailedEventDetails": {
"error": "States.Runtime",
"cause": "RuntimeError(The JSONPath $.ErrorX could not be found in the input {\"Error\": \"error-value\", \"Cause\": \"cause-value\"})"
}
(the extra word RuntimeError
is causing our test automation to fail.
Expected Behavior
The output from get-execution-history
should be:
"executionFailedEventDetails": {
"error": "States.Runtime",
"cause": "An error occurred while executing the state 'fail' (entered at the event id #4). The JSONPath '$.ErrorX' specified for the field 'ErrorPath' could not be found in the input '{\"Error\":\"error-value\",\"Cause\":\"cause-value\"}'"
}
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
How are you starting localstack (e.g., bin/localstack
command, arguments, or docker-compose.yml
)
docker-compose up
Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
awslocal --region us-east-1 stepfunctions create-state-machine --name "Fail_errors" --definition file://file.asl.json --role-arn arn:aws:iam::000000000000:role/Admin
awslocal --region us-east-1 stepfunctions start-execution --state-machine-arn arn:aws:states:us-east-1:000000000000:stateMachine:Fail_errors
awslocal --region us-east-1 stepfunctions get-execution-history --execution-arn
Environment
- OS: Amazon Linux
- LocalStack:
LocalStack version: 4.0.3.dev22
LocalStack build date: 2024-11-27
LocalStack build git hash: 0e01610bb
Anything else?
No response
Metadata
Metadata
Assignees
Labels
aws:stepfunctionsAWS Step FunctionsAWS Step Functionsstatus: response requiredWaiting for a response from the reporterWaiting for a response from the reportertype: bugBug reportBug report