If you send a POST request to the server with incomplete JSON or a "Content-Length" header that is less than the actual body length, the server will crash.
Example:
curl -X POST http://localhost:1337/note \ -H "Content-Length: 3" \ -H "Content-Type: application/json" \ -d "{bodybody}"
Or
curl -X POST http://localhost:1337/note -H "Content-Type: application/json" -d "{bodybody"
Will throw a SyntaxError on the server.

It happens because the server tries to parse incomplete JSON, which causes an error.
How to fix: request validation and error handling need to be added.