Closed gojko closed 5 years ago
done some more investigation on this, looks like responseTemplates
became mandatory in this version. Documentation (https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/APIGateway.html#putIntegrationResponse-property) suggests that this should not be mandatory
@gojko
Thanks for the investigation.
It actually looks like this was due to the change here: https://github.com/aws/aws-sdk-js/pull/2574
Starting in 2.424.0, the body for this operation was empty, whereas in 2.423.0 and earlier, the body was {}
. The service is failing validation on the empty body in the request.
@gojko
This has been fixed in 2.426.0.
Thanks again for raising this issue.
since release 2.424.0,
putIntegrationResponse
in API gateway refuses to execute valid requests containinghttpMethod
,resourceId
,restApiId
andstatusCode
this works with
aws-sdk@2.423.0
, but does not work with2.424.0
. (of course, relevant resource IDs need to be set up first)this is an error thrown from 2.424.0