CodeGenieApp / CodeGenieApp/serverless-express

AWS callback warning

Abierto
#700 10 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
5.3k
Forks
676
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

In my AWS logs for a S3 Bucket notification lambda that uses serverless-express, I get the following warning:

```
AWS Lambda plans to remove support for callback-based function handlers starting with Node.js 24. You will need to update this function to use an async handler to use Node.js 24 or later. For more information and to provide feedback on this change, see https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/issues/137. To disable this warning, set the AWS_LAMBDA_NODEJS_DISABLE_CALLBACK_WARNING environment variable.
```

This is how I'm creating the request handler:

```
export const handler = serverlessExpress({
app,
eventSourceRoutes: {
AWS_S3: "/s3",
},
});
```

Seems like serverless-express may need some internal update to be compatible with the new AWS updates?

Edit>> My version is `4.16.0`

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start from the serverlessExpress({ app, eventSourceRoutes: { AWS_S3: "/s3" } }) entry point and inspect how the Lambda handler is created. Reproduce the warning with the reported version, 4.16.0, and determine the compatibility change needed for Node.js 24. Done means the S3 notification handler no longer triggers AWS's callback-based handler warning while retaining its routing behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
aws, javascript, node.js
Área
backend, cloud
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.