Skip to content

(aws-apigateway): StepFunctionsIntegration failure response is not a valid json payload #19252

@rogerchi

Description

@rogerchi

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

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-apigatewayRelated to Amazon API GatewaybugThis issue is a bug.in-progressThis issue is being actively worked on.p1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions