Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasional ECONNRESET and EPIPE errors #162

Open
brianlukoff opened this issue Nov 23, 2021 · 1 comment
Open

Occasional ECONNRESET and EPIPE errors #162

brianlukoff opened this issue Nov 23, 2021 · 1 comment

Comments

@brianlukoff
Copy link

We are using winston to log to Papertrail over syslog. Occasionally winston will throw an ECONNRESET or an EPIPE here, when attempting to send a log message:

Error: write EPIPE
  File "internal/stream_base_commons.js", line 156, col 25, in afterWriteDispatched
  File "internal/stream_base_commons.js", line 147, col 3, in writeGeneric
  File "net.js", line 798, col 11, in TLSSocket.Socket._writeGeneric
  File "net.js", line 810, col 8, in TLSSocket.Socket._write
  File "internal/streams/writable.js", line 358, col 12, in writeOrBuffer
  File "internal/streams/writable.js", line 303, col 10, in TLSSocket.Writable.write
  File "/opt/meteor/dist/bundle/programs/server/npm/node_modules/winston-syslog/lib/winston-syslog.js", line 255, col 21, in null.<anonymous>
    this.socket.write(syslogMsg, 'utf8', onError);

Has anyone run into this -- any ideas about how to avoid?

@mhassan1
Copy link

maybe related? nodejs/node#40553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants