-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(aws-apigateway): StepFunctionsIntegration failure response is not a valid json payload #19252
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-apigatewayRelated to Amazon API GatewayRelated to Amazon API GatewaybugThis issue is a bug.This issue is a bug.in-progressThis issue is being actively worked on.This issue is being actively worked on.p1
Description
What is the problem?
Currently, the failure response for an API Gateway REST API Step Functions Integration is not valid JSON. It is missing a comma between the error and cause properties.
Reproduction Steps
Use a StepFunctionsRestApi and have it return a Fail in the synchronous express step function.
What did you expect to happen?
A valid JSON payload should be returned:
{
"error": "error",
"cause": "cause"
}
What actually happened?
Invalid JSON payload is returned, missing a comma:
{
"error": "error"
"cause": "cause"
}
CDK CLI Version
2.15.0
Framework Version
No response
Node.js Version
v14.18.1
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-apigatewayRelated to Amazon API GatewayRelated to Amazon API GatewaybugThis issue is a bug.This issue is a bug.in-progressThis issue is being actively worked on.This issue is being actively worked on.p1