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.

AWS Lambda integration - Improve error message & allow for port change

See original GitHub issue

Problem 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sl0thentr0pycommented, Oct 6, 2022

@AbhiPrasad it’s already on our backlog, you can remove it from yours.

2reactions
sl0thentr0pycommented, Aug 4, 2022

We will just pick an obscure port here, exposing this as config doesn’t hold much value. Will update issue when fixed/shipped.

Read more comments on GitHub >

github_iconTop 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 >

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