Deploy nestjs app to lambda but keeps timeout

0

Hi,

I deployed a nestjs app to a lambda function but it never invoked successfully. Always showed me 502 internal server error.

I tested 'sam local start-apo', and it worked ok.

This app does not communicate to any other aws services, and no VPC was set up.

Tried api gateway and public function url, but both showed 502.

Here is the serverless.ts that defines the handler. Enter image description here

Here is the yaml file. Enter image description here

here is the log. Enter image description here

Please let me know if you need more information.

Thank you so much.

Chris

Chris
gefragt vor 3 Monaten122 Aufrufe
1 Antwort
1
Akzeptierte Antwort

this issue has been solved. it's the MongoDB that was not connected properly.

Chris
beantwortet vor 3 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen