1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
3
As you are using node.js I think the issue is that the function returns before the function finished updating the database. Once the function returns, the Lambda execution environment is frozen and it will be unfrozen when the next request is received.
You should either update the DB using a synchronous mode, i.e., use await
when updating the DB, or make sure that the context.callbackWaitsForEmptyEventLoop
is set to true
. See more information here.
Contenus pertinents
- demandé il y a un an
- demandé il y a 6 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans