-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApiGateway.putIntegration cacheKeyParameters required #813
Comments
Noticing a few more things regarding these APIs. The httpMethod when creating a method is case sensitive and has t be UPPERCASE, i.e. GET, POST etc. There appears to be no validation of this but when invoking a method that was created with lowercase "get" I get an error from API Gateway. This issue is more likely on the API Gateway end of thing and not really related to the JS SDK although it should be reflected in the docs (which I guess is also on the API Gateway team :)) |
@polythene1337 I just re-tested |
Hi! I've tested this a bit more and it turns out that if cacheKeyParameters is provided in params but is either undefined or null it fails. If the key is omitted it works. I would expect that an undefined value would simply be ignored and work just as if the key wasn't provided.
|
@polythene1337 For your use case, would it be possible to prevent setting |
Hi, This behaviour is somewhat different from other APIs I've used in the SDK which I would say is about all of them. I've never encountered a case where an undefined key causes an error before.
That would be the expected behaviour in my opinion. That said, I've solved it by specifically checking that it is set before adding it to the params. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Hi,
I just invoked the apigateway.putIntegration function and got this error:
I supplied the four required parameters in this call.
As it turned out I had to supply cacheKeyParameters as an empty array. cacheKeyParameters is not listed as a required parameter.
Regards,
Carl
The text was updated successfully, but these errors were encountered: