Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 1 year ago. Improve this question
Tag: aws-api-gateway
GoneException when calling post_to_connection on AWS lambda and API gateway
I want to send a message to a websocket client when it connects to the server on AWS lambda and API gateway. Currently, I use wscat as a client. Since the response ‘connected’ is not shown on the wscat console when I connect to the server, I added post_to_connection to send a message ‘hello world’ to the client. However, it
when calling the UpdateMethod operation getting invalid path error for /methodIntegration/uri
I’m updating an API in AWS API Gateway. This is my lambda function: This works fine and updates “API key required” field, but when I try to update the “URI” field it throws the following error. “errorMessage”: “An error occurred (BadRequestException) when calling the UpdateMethod operation: Invalid patch path /methodIntegration/uri”, The path looks fine to me. Docs: https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-method.html Answer apiKeyRequired
Adding API to Usage Plan using Serverless Framework
My serverless.yaml file is as follows: I want to add this API to a Usage Plan. How is this done? Answer Used the AWS CLI with the following command