From 71bf9cb9c03e2c0a0b3042c9c4992100ddfc09d9 Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Wed, 18 Nov 2020 10:41:18 -0300 Subject: [PATCH] :zap: 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. --- packages/nodes-base/nodes/EmailReadImap.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/EmailReadImap.node.ts b/packages/nodes-base/nodes/EmailReadImap.node.ts index 22aee855c6..7e28a535de 100644 --- a/packages/nodes-base/nodes/EmailReadImap.node.ts +++ b/packages/nodes-base/nodes/EmailReadImap.node.ts @@ -362,7 +362,7 @@ export class EmailReadImap implements INodeType { host: credentials.host as string, port: credentials.port as number, tls: credentials.secure as boolean, - authTimeout: 3000, + authTimeout: 10000, }, onmail: async () => { const returnData = await getNewEmails(connection, searchCriteria);