AWS Lambda integration - Improve error message & allow for port change
See original GitHub issueProblem Statement
Currently our lambda integration is running on port 8000. If there is an another service running on that port, the user will see ERROR: bind to interface failed caused by: Address already in use (os error 98)
a) we should improve the error message to make it more informative b) we can consider allowing port switch to avoid the above issue
Solution Brainstorm
Posssible solution: a) start relay on an obscure port. b) start by default on 8000, but make it configurable via env variable (needs changes in sdk and relay, can be complicated to work on all different js frameworks.
So better go with a)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Resolve errors from API Gateway integration with Lambda ...
I want to resolve the errors that I receive when I integrate Amazon API Gateway with an AWS Lambda function. Resolution. Turn on...
Read more >Handle Lambda errors in API Gateway - AWS Documentation
Handle custom Lambda errors in API Gateway. This template translates the integration response body that contains the custom error JSON string to the...
Read more >Configuring a Lambda function to access resources in a VPC
Learn how to configure a Lambda function to access Amazon VPC resources.
Read more >Invoke AWS Lambda functions - Amazon Connect
Learn how to grant Amazon Connect access to your AWS Lambda functions and invoke them from your flow.
Read more >Enabling CORS for a REST API resource - Amazon API Gateway
A different port (for example, from example.com to example.com:10777 ) ... How you enable CORS support depends on your API's integration type.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@AbhiPrasad it’s already on our backlog, you can remove it from yours.
We will just pick an obscure port here, exposing this as config doesn’t hold much value. Will update issue when fixed/shipped.