question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timed out while authenticating with server

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:25 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
chandnisonicommented, Nov 15, 2018

I am getting same error: 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)

3reactions
mscdexcommented, Oct 24, 2014

If you’re re-using the same imap instance like that, you need to change imap.once('error', ...) to imap.on('error', ...) because otherwise. Same with imap.once('ready', ...).

However if you are seeing a ready event and it’s not authenticated, that’s a bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TimeOut Error while authenticating with server using node ...
I read somwhere, that TimeOut for authenticating with server is default 5s, but I don't how it is related in connectiong with Google...
Read more >
Timed out-IMAP Email - Questions - n8n community
Hi Team, I got the error “Timed out while connecting to server” ... The authentication timeout is set to 20 seconds (defaults is...
Read more >
Session has timed out response when authenticating to AM ...
The purpose of this article is to provide assistance if you receive a "Session has timed out" response when authenticating to AM.
Read more >
The connection to your mail server timed out error in Outlook ...
Outlook can't connect to a server by an RPC or HTTPS connection - Outlook. Describes an issue where you receive a There is...
Read more >
"authentication error while connecting to server" imap.gmail.com
Authentication error while connecting to gmail and connection to imap.gmail.com timed out... 4 replies; 1 has this problem; 131 views ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found