Increase timeout to IMAP node. (#1178)

Yahoo mail is unable to provide a response in under 3 seconds. Increasing
this limit to 10 seconds seems to solve the timeout issue.

I was unable to properly login to Yahoo but at least the timeout error
is not happening anymore.

Setting the node to work with Gmail worked fine although it is a
somewhat painful process as Gmail avoids the so called non secure apps.
This commit is contained in:
Omar Ajoue 2020-11-18 10:41:18 -03:00 committed by GitHub
parent b81d175145
commit 71bf9cb9c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,7 @@ export class EmailReadImap implements INodeType {
host: credentials.host as string, host: credentials.host as string,
port: credentials.port as number, port: credentials.port as number,
tls: credentials.secure as boolean, tls: credentials.secure as boolean,
authTimeout: 3000, authTimeout: 10000,
}, },
onmail: async () => { onmail: async () => {
const returnData = await getNewEmails(connection, searchCriteria); const returnData = await getNewEmails(connection, searchCriteria);