Error: socket hang up
Opened this issue · 0 comments
dtex commented
I have a recurring error:
[13:21:05] 'SAMFontello' errored after 15 s
[13:21:05] Error: socket hang up
at connResetException (internal/errors.js:609:14)
at TLSSocket.socketCloseListener (_http_client.js:406:25)
at TLSSocket.emit (events.js:333:22)
at TLSSocket.EventEmitter.emit (domain.js:547:15)
at net.js:672:12
at TCP.done (_tls_wrap.js:558:7)
[13:21:05] 'default' errored after 15 s
and the relevant code in my build script
function SAMFontello() {
return src("src/admin/fonts/fontello.json",
{
base: ".",
})
.pipe(fontello())
.pipe(dest("./dist/admin/fonts"))
}
It happens about 75% of the time for me. Others I work with see it less often.
I've found that if I bump the open_timeout option in the call to needle to >20 seconds it works. If it's not just me, I'll submit a PR. If it's just me, then maybe something else in my build is stepping on the HTTP traffic.