Skip to content

'socket hang up' error thrown randomly #404

Description

@revett

- Do you want to request a feature or report a bug?

Bug

- What is the current behavior?

At points during development the following error occurs which stops the entire Netlify Dev stack:

.../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)

Looks like it was also reported on the community forum back in April - https://community.netlify.com/t/netlify-dev-regularly-crashes/551

- If the current behavior is a bug, please provide the steps to reproduce.

I haven't been able see any common pattern for what causes this.

- What is the expected behavior?

Should not crash.

- Please mention your node.js, and operating system version.

  • Node: v10.15.1
  • Using yarn
  • Netlify CLI 2.12.0

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions