`netlify dev` regularly crashes


I’m running netlify dev on a gatsby project with functions setup.

Quite regularly (5-10mins) it crashes with the following error:

      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: read EIO

  - stream_base_commons.js:111 TTY.onStreamRead

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.


Hi, @ErisDS, I’m not sure what would cause this. If you have time, would you be willing to please file an issue for this in our public repo for Netlify Dev here? Our developers are a bit more focused on conversations about Netlify Dev in GitHub than they are here in our community at the moment (limited resources and all that jazz).

1 Like