-
Notifications
You must be signed in to change notification settings - Fork 63
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
AWS Lambda - Serverless Framework - Nestjs - Getting Timed Out #682
Comments
Hey @sedhuait, I created a nest.js + serverless app and I was able to reproduce your issue:
I then tried our upcoming version of honeybadger-js which includes changes in our AWS lambda handler implementation the timeout error went away.
Then deploy and test. Thanks! |
Sure. Gimme sometime. I'll check and update |
@subzero10 : I have another quick question.
May be related to #327 |
@subzero10 : I have tried with
Why it has to be
|
Yes this is possible. The tricky part here is that
Can you please give it a try and let me know how it goes? Thanks! cc @joshuap |
Can you please provide a snippet of code where this is showing the errors? Basically, I'm looking to find all the missing types and make sure they are available (if they should be). |
@subzero10 Example for CustomMessageTriggerHandler
Ideally HB should support all the events and handlers from |
Good point @sedhuait, I am working on this at the moment. I will see if we can have a typed solution or if we will just use |
@sedhuait The type definitions are done.
Please follow #677 , which should be released soon and will include:
cc @joshuap |
This has been released with v4 (currently in beta). |
What are the steps to reproduce this issue?
I have hosted a REST API with AWS Components like API GATEWAY & LAMBDA using Nestjs and Serverless Framework.
So to integrate with Honeybadger Lambda Handler I have made the changes below. It had typescript error and I refactored it as follows

After refacorting,
What happens?
This setup works properly in serverless offline start "sls offline start"
But When I deploy this on AWS Lambda, the functions are getting timed out after 30 seconds. Its getting stuck in
Honeybadger.lambdaHandler
as I see the success response in my middleware.Kindly check my aws metrics dashboard below. Spikes are during my Honeybadger integration test. After that, I removed it, and it came back to normal.
What were you expecting to happen?
It should have got the proper response.
Any logs, error output, etc?
What versions are you using?
Operating System: … AWS
Package Version: … "@honeybadger-io/js": "3.2.7", "@nestjs/common": "8.0.0", "@nestjs/core": "8.0.0",
The text was updated successfully, but these errors were encountered: