-
Notifications
You must be signed in to change notification settings - Fork 390
Open
Description
Sometimes (5-10% of times) I get error "Timed out while authenticating with server" after .connect().
Code
this.imap.once('ready', () => {
console.log('ready')
});
this.imap.once('error', err => {
console.log('error')
});
this.imap.once('end', () => {
console.log('end')
});
this.imap.once('close', () => {
console.log('close')
});
this.imap.connect();
Log:
[connection] Connected to host
<= '* OK IMAP4 ready'
=> 'A0 CAPABILITY'
<= '* CAPABILITY IMAP4rev1 UIDPLUS IDLE LITERAL+ QUOTA AUTH=PLAIN'
<= 'A0 OK completed'
=> 'A1 LOGIN "myloginhere" "mypasswordhere"'
[connection] Closed
Config
this.imap = new Imap({
user: credentials.login,
password: credentials.password,
host: credentials.connectionHost,
port: credentials.connectionPort,
tls: true,
tlsOptions: {
rejectUnauthorized: false,
},
keepalive: false,
connTimeout: 30000,
authTimeout: 15000,
debug: console.log
});
Version: 0.8.19
After couple of seconds another connection try can be ok.
What can be wrong?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels