We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
States.Format
States.Format() doesn't seem to work when used in the ErrorPath of a Fail task.
States.Format()
ErrorPath
Fail
The following state is working as expected in the AWS console:
"My Fail State": { "Type": "Fail", "Comment": "The comment.", "ErrorPath": "States.Format('job_id: {}, client_id: {}', $[0].detail.job_id, $[0].detail.client_id)", "Cause": "A string representing the cause" }
however, when translated to yaml we cannot package this - it raises an error.
The following state in yaml does not work with sls package
sls package
My Fail State: Type: Fail Comment: "The comment." ErrorPath: "States.Format('job_id: {}, client_id: {}', $[0].detail.job_id, $[0].detail.client_id)" Cause: "A string representing the cause"
When I remove the ErrorPath sls package works correctly. I cannot remove the double quotes around States.Format i.e.
ErrorPath: States.Format('job_id: {}, client_id: {}', $[0].detail.job_id, $[0].detail.client_id)
because then I get a cannot parse ... bad indentation of a mapping entry... error, presumably because of the curly braces.
cannot parse ... bad indentation of a mapping entry...
I've also tried with:
ErrorPath: "$[0].detail.job_id"
and receive the same error
For bug reports:
SCHEMA_VALIDATION_FAILED: /States/Fail - My Fail State. must match exactly one schema in oneOf
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is a (Bug Report)
Description
States.Format()
doesn't seem to work when used in theErrorPath
of aFail
task.The following state is working as expected in the AWS console:
however, when translated to yaml we cannot package this - it raises an error.
The following state in yaml does not work with
sls package
When I remove the
ErrorPath
sls package
works correctly.I cannot remove the double quotes around States.Format i.e.
because then I get a
cannot parse ... bad indentation of a mapping entry...
error, presumably because of the curly braces.I've also tried with:
and receive the same error
For bug reports:
The following error occurs when doing
sls package
when using anErrorPath
withStates.Format()
No error should have occurred
Additional Data
3.17.0
The text was updated successfully, but these errors were encountered: