question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ApiGatewayManagementApi Documentation Improvement

See original GitHub issue

Documentation should specify that the endpoint argument of client object has to be set manually to https://{api-id}.execute-api.{region}.amazonaws.com/{stage}, or otherwise the post_to_connection function will timeout and do nothing, or cause an internal error.

Example:

# from
client = boto3.client('apigatewaymanagementapi')
# to
client = boto3.client('apigatewaymanagementapi', endpoint_url='https://{api-id}.execute-api.{region}.amazonaws.com/{stage}')

This will save a lot of time and nerve for people developing API gateway web socket integrations

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:101
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

19reactions
wulfmanncommented, Jul 21, 2019

id just like to bump this as it caused me a lot of issues since the documentation is so unclear.

7reactions
dixlercommented, Jan 16, 2021

@swetashre I think that including the endpoint_url optional parameter to the client constructor in the documentation might be more easily skimmable and more clear given it seems like it’s necessary for a good number of people from the likes and very vibrant comments.

client = boto3.client('apigatewaymanagementapi', endpoint_url='https://{api-id}.execute-api.{region}.amazonaws.com/{stage}')
Read more comments on GitHub >

github_iconTop Results From Across the Web

Class: AWS.ApiGatewayManagementApi - AWS Documentation
Constructs a service interface object. Each API operation is exposed as a function on service. Service Description. The Amazon API Gateway ...
Read more >
ApiGatewayManagementApi — Boto3 Docs 1.26.34 ... - AWS
The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly...
Read more >
Micronaut AWS SDK v2
For example, for AWS SQS, you can set aws.services.sqs.endpoint-override=https://localhost:1234 . 7.5 API Gateway Management API Client. Improve this doc.
Read more >
@aws-sdk/client-apigatewaymanagementapi - npm
Visit Developer Guide or API Reference. Check out the blog posts tagged with aws-sdk-js on AWS Developer Blog. Ask a question on StackOverflow...
Read more >
websocket - Lambda times out when calling post_to_connection
I found [this post][1] asking for a clearer boto3 documentation. It turns out that if you instantiate apigatewaymanagementapi client you ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found