node-imap: Timed out while authenticating with server
Hello,
Very Rarely, I come across the error “Timed out while authenticating with server”. Is there a way to handle this error gracefully? Connection event imap.once('error', function(err) {}) does not help. I am on node 0.8.27 with node-imap 0.8.14. Error details are below.
Error: Timed out while authenticating with server
at Object._onTimeout (/app/node_modules/imap/lib/Connection.js:137:17)
at Timer.list.ontimeout (timers.js:101:19)
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 25 (14 by maintainers)
I am getting same error:
Error: Timed out while authenticating with serverat Object._onTimeout (/app/node_modules/imap/lib/Connection.js:137:17)at Timer.list.ontimeout (timers.js:101:19)If you’re re-using the same
imapinstance like that, you need to changeimap.once('error', ...)toimap.on('error', ...)because otherwise. Same withimap.once('ready', ...).However if you are seeing a
readyevent and it’s not authenticated, that’s a bug.Here is what I found so far. please check inline comments.