You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at doWrite (_stream_writable.js:406:19)
at clearBuffer (_stream_writable.js:540:7)
at Socket.Writable.uncork (_stream_writable.js:314:7)
at JSStreamWrap.doWrite (internal/wrap_js_stream.js:151:17)
at JSStream.onwrite (internal/wrap_js_stream.js:18:49)
at handleWriteReq (internal/stream_base_commons.js:20:21)
at writeGeneric (internal/stream_base_commons.js:68:13)
at TLSSocket.Socket._writeGeneric (net.js:757:5)
at TLSSocket.Socket._write (net.js:769:8)
at doWrite (_stream_writable.js:410:12)
Emitted 'error' event at:
at TLSSocket._onError (/home/ubuntu/emailparse/node_modules/imap/lib/Connection.js:151:10)
at TLSSocket.emit (events.js:182:13)
at TLSSocket._emitTLSError (_tls_wrap.js:603:10)
at JSStreamWrap.wrap.on (_tls_wrap.js:546:36)
at JSStreamWrap.emit (events.js:182:13)
at Socket.JSStreamWrap.stream.on (internal/wrap_js_stream.js:48:38)
at Socket.emit (events.js:182:13)
at onwriteError (_stream_writable.js:425:12)
at onwrite (_stream_writable.js:456:5)
at doWrite (_stream_writable.js:406:11)
The text was updated successfully, but these errors were encountered:
I have two problems, the first is how do I catch this error? the second is how do I recover from this error and start listening again.
I am connecting to O365 and once or twice a day they reset the connection.
index.mjs.txt
FTCHEND
LAST 676
ERR Tue Jun 26 2018 03:09:55 GMT-0700 (Pacific Daylight Time) { Error: read ECONNRESET
at TCP.onread (net.js:656:25)
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read',
source: 'socket' }
events.js:167
throw er; // Unhandled 'error' event
^
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at doWrite (_stream_writable.js:406:19)
at clearBuffer (_stream_writable.js:540:7)
at Socket.Writable.uncork (_stream_writable.js:314:7)
at JSStreamWrap.doWrite (internal/wrap_js_stream.js:151:17)
at JSStream.onwrite (internal/wrap_js_stream.js:18:49)
at handleWriteReq (internal/stream_base_commons.js:20:21)
at writeGeneric (internal/stream_base_commons.js:68:13)
at TLSSocket.Socket._writeGeneric (net.js:757:5)
at TLSSocket.Socket._write (net.js:769:8)
at doWrite (_stream_writable.js:410:12)
Emitted 'error' event at:
at TLSSocket._onError (/home/ubuntu/emailparse/node_modules/imap/lib/Connection.js:151:10)
at TLSSocket.emit (events.js:182:13)
at TLSSocket._emitTLSError (_tls_wrap.js:603:10)
at JSStreamWrap.wrap.on (_tls_wrap.js:546:36)
at JSStreamWrap.emit (events.js:182:13)
at Socket.JSStreamWrap.stream.on (internal/wrap_js_stream.js:48:38)
at Socket.emit (events.js:182:13)
at onwriteError (_stream_writable.js:425:12)
at onwrite (_stream_writable.js:456:5)
at doWrite (_stream_writable.js:406:11)
The text was updated successfully, but these errors were encountered: