Hi
I think I've tried everything by now
I have a simple Lambda function that works fine when I test it, but fails when it gets called by Architect.
I can see that call in the Lambda logs, but it always exits on the "fail" exit in architect. I've even tried calling it from a screen pop script and I get the same failure.
It's based on your fine examples, so I'm getting really frustrated that I can't even get it to work where I need it
{
"name": "TestLambdaTransform3 - Exported 2022-05-25 @ 8:16",
"integrationType": "aws-lambda-data-actions",
"actionType": "custom",
"config": {
"request": {
"requestUrlTemplate": "arn:aws:lambda:eu-west-1:******:function:testLambdaFunction",
"requestType": "POST",
"headers": {
"Transfer-Encoding": "buffered"
},
"requestTemplate": "{\n "payloadFieldKey": "${input.arrayToTransform}"\n}"
},
"response": {
"translationMap": {
"charSeparatedList": "$.body.message"
},
"translationMapDefaults": {},
"successTemplate": "{"charSeparatedList":${charSeparatedList}}"
}
},
"contract": {
"input": {
"inputSchema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"arrayToTransform": {
"type": "string"
}
}
}
},
"output": {
"successSchema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"charSeparatedList": {
"type": "string"
}
}
}
}
},
"secure": false
}
Here is a picture of the test.
I'll also include the return from the Lambda function:
Execute step 7 output:
{
"statusCode": 200,
"body": {
"message": "Anders And:44559918|Donald Duck:44559918"
}
}
Flatten step 12:
{
"charSeparatedList": "Anders And:44559918|Donald Duck:44559918"
}
Please tell me what mistake I have made.
BR
Anders