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

Unhandled error on ECONNRESET net.js line 656, Connection.js:151 #710

Open
greenpdx opened this issue Jun 26, 2018 · 0 comments
Open

Unhandled error on ECONNRESET net.js line 656, Connection.js:151 #710

greenpdx opened this issue Jun 26, 2018 · 0 comments

Comments

@greenpdx
Copy link

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)

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

1 participant