Fail more gracefully when failing to parse incoming JSON
The current error is as follows
Jun 23 19:48:54 web esited[29355]: SyntaxError: Unexpected end of JSON input
Jun 23 19:48:54 web esited[29355]: at JSON.parse (<anonymous>)
Jun 23 19:48:54 web esited[29355]: at IncomingMessage.req.on (/opt/esited/node_modules/kado/lib/Parser.js:215:33)
Jun 23 19:48:54 web esited[29355]: at IncomingMessage.emit (events.js:203:15)
Jun 23 19:48:54 web esited[29355]: at endReadableNT (_stream_readable.js:1145:12)
Jun 23 19:48:54 web esited[29355]: at process._tickCallback (internal/process/next_tick.js:63:19)
This needs to simply set the input to nothing.
Thank you