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

Error importing Swagger #209

Open
krishnaaravacadreon opened this issue Nov 11, 2017 · 0 comments
Open

Error importing Swagger #209

krishnaaravacadreon opened this issue Nov 11, 2017 · 0 comments

Comments

@krishnaaravacadreon
Copy link

krishnaaravacadreon commented Nov 11, 2017

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)'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant