CodeGenieApp / CodeGenieApp/serverless-express
Headers and Body not being assigned to the ServerlessRequest in NodeJS v19.1.0
Aperta
- Lingua principale
- JavaScript
- Stelle
- 5.3k
- Fork
- 676
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.