gpt4 book ai didi

json - 选择状态不指向下一个状态 - AWS

转载 作者:行者123 更新时间:2023-12-05 04:03:07 24 4
gpt4 key购买 nike

我有以下步骤功能。执行在选择状态下失败。

"States": {
"Process": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:123:function:dummy1",
"OutputPath": "$",
"Next": "ChoiceStatePre"
},

"ChoiceStatePre": {
"Type": "Choice",
"Choices": [{
"Variable": "$.status_pre",
"Next": "Series0",
"NumericEquals": 1
}, {
"Variable": "$.status_pre",
"Next": "MatchStatePre",
"NumericEquals": 8
}]
},
"MatchStatePre": {
"Type": "Task",
"Next": "PreProcess",
"Resource": "arn:aws:states:us-east-1:123:activity:dummy2"
},
"Series0": {
"Resource": "arn:aws:lambda:us-east-1:123:function:dummy3",
"Type": "Task",
"InputPath": "$.seq0.step0",
"ResultPath": "$.seq0.step0",
"OutputPath": "$",
"Next": "ChoiceStateTrigger0"
}
}

错误-

{
"error": "States.Runtime",
"cause": "An error occurred while executing the state 'ChoiceStatePre'
(entered at the event id #7). Failed to transition out of the state. The
state does not point to a next state."
}

我已经为它设置了下一个状态,但错误提示选择状​​态未指向任何下一个状态。

最佳答案

在查看“ChoiceStatePre”时,我没有看到默认状态。这似乎是这次失败的根本原因。请添加默认状态并重试。像这样:

“默认状态”:{ “类型”:“失败”, “原因”:“没有匹配项!”

关于json - 选择状态不指向下一个状态 - AWS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53868948/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com