Skip to content
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

Internal Server Error #197

Open
Muzeebshaik opened this issue Apr 28, 2024 · 1 comment
Open

Internal Server Error #197

Muzeebshaik opened this issue Apr 28, 2024 · 1 comment

Comments

@Muzeebshaik
Copy link

Muzeebshaik commented Apr 28, 2024

I'm attempting to execute my Go application within a lambda. I am using a fiber adapter, and when I try to invoke any of the endpoints from the API GATEWAY, I constantly receive an internal server error.
usually my endpoint looks like "/components/:id"
Does the fiber adapter just support endpoints without route parameters?

Below is the code I have in lambda
`var fl *fiberLambda.FiberLambda

func init() {
// create a new fiber instance
app := fiber.New()

app.Get("/components/:Id", getComponents)
app.Post("/components/:Id", putComponents)

fl = fiberLambda.New(app)

}
func handler(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
return fl.ProxyWithContext(ctx, request)
}
func main() {
lambda.Start(handler)

}`

@Muzeebshaik
Copy link
Author

Muzeebshaik commented May 6, 2024

When I trigger lambda using API gateway I am facing
could not resolve TCP address for addr test-invoke-source-ip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant