CodeGenieApp / CodeGenieApp/serverless-express
Headers and Body not being assigned to the ServerlessRequest in NodeJS v19.1.0
- Lenguaje dominante
- JavaScript
- Estrellas
- 5.3k
- Forks
- 676
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
When making a request in NodeJS v19.1.0 the request headers and body don't get passed through correctly. After some debugging I've narrowed it down to this Object.assign in the request constructor: https://github.com/vendia/serverless-express/blob/mainline/src/request.js#L18
When making a request on Node v16.18.1 or v18.12.1 it's fine, but v19.1.0 it doesn't work, both the test header and all other headers aren't being assigned
16.18.1

18.12.1

19.1.0

Workaround is just to use NodeJS < 19 for now
Guía de contribución
Línea de trabajo
Start in src/request.js at the Object.assign call on line 18, then reproduce the request behavior on Node.js 16.18.1, 18.12.1, and 19.1.0 using the issue's header and body scenario. Done means headers and body are assigned correctly on Node.js 19.1.0 without breaking the reported working versions.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js
- Área
- api, backend
- 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