micromata / http-fake-backend

Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
MIT License
311 stars 22 forks source link

POST not working with node 16 / npm 8 #23

Closed mppperez closed 11 months ago

mppperez commented 2 years ago

Sending POST requests to the server is not working while using Node v16.14.0 and npm 8.3.2 but it works using node v14.19.0 npm v6.14.16.

Executing POST requests via our app or curl resulted in waiting for the response until it timed out. The server logs already printed that the response were written but it actually never were received. Restarting the server with node v14 and npm v6 made it working again.

Solution: updating all hapi libraries and making the appropriate changes. PR incoming.