netlify dev on a gatsby project with functions setup.
Quite regularly (5-10mins) it crashes with the following error:
/Users/hannah/.nvm/versions/node/v10.15.1/lib/node_modules/netlify-cli/node_modules/netlify-redirector/lib/redirects.js:116 throw ex; ^ Error: socket hang up at createHangUpError (_http_client.js:323:15) at Socket.socketCloseListener (_http_client.js:364:25) at Socket.emit (events.js:194:15) at TCP._handle.close (net.js:600:12)
The error stops everything working, but doesn’t exit the process.
If this happens, or if I create an uncaught error, I’m also subsequently getting this:
error UNHANDLED EXCEPTION Error: read EIO - stream_base_commons.js:111 TTY.onStreamRead internal/stream_base_commons.js:111:27
Once this happens, the process does crash/exit. At this point, anything I type into the terminal doesn’t appear. So I have to close the window and open a new one.
Note: I’m using iTerm 2 on a mac.