Skip to content
This repository was archived by the owner on Aug 8, 2018. It is now read-only.
This repository was archived by the owner on Aug 8, 2018. It is now read-only.

Error importing Swagger #209

@krishnaaravacadreon

Description

@krishnaaravacadreon

Hi,

Below is my swagger integration response expression used for redirection. But when I import this configuration I keep getting 400 BadRequest Exception from Amazon API.

"https://.*": {
      "statusCode": "302",
      "responseParameters": {
      "method.response.header.Location": "integration.response.body.errorMessage"
      }
}

Error Message:

Unable to put integration response on 'POST' for resource at path '/foo': Invalid mapping expression specified: Validation Result: warnings : [], errors : [Invalid mapping expression parameter specified: method.response.header.Location] (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException; Request ID: XXXXXXXXXXX)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions