Error: socket hang up

Is there a way to debug Error: socket hang up? There are a bunch of issues that mention it but no useful direction about what’s causing it.