我正在使用标准博客教程将 api gateway 与 step 函数从这里集成: https ://docs.aws.amazon.com/step-functions/latest/dg/tutorial-api-gateway.html
我的步进函数需要以下输出:
{
"my_params": {
"config": "config_value"
}
}
如博客中所述,进行发布请求所需的请求正文是:
{
"input": "{}",
"name": "MyExecution",
"stateMachineArn": "arn:aws:states:us-east-1:123456789012:stateMachine:HelloWorld"
}
我正在传递我需要的输入,如下所示:
{
"input": {
"my_params": {
"config": "config_value"
}
},
"name": "MyExecution",
"stateMachineArn": "my-arn"
}
但是,我不断收到以下错误:
{
"__type": "com.amazon.coral.service#SerializationException",
"Message": "Start of structure or map found where not expected."
}
有人可以告诉我这里到底是什么问题吗?我在这里做错了什么?快速帮助表示赞赏。