【发布时间】:2016-07-14 19:07:57
【问题描述】:
根据我之前发布的here的问题,我在使用read.coffee时遇到了这个错误
events.js:141
throw er; // Unhandled 'error' event
^
Error: Timed out while authenticating with server
at [object Object]._onTimeout (/home/rmatuszak/Dokumenty/NodeJS/mail/node_modules/imap/lib/Connection.js:138:17)
at Timer.listOnTimeout (timers.js:92:15)
我在某处读到,与服务器进行身份验证的 TimeOut 默认为 5 秒,但我不知道它与 Google IMAP 有什么关系,以及我应该如何更改它以使其正常工作。
【问题讨论】:
-
能否请您附上您的
read.coffee文件? -
这是我的
read.coffee文件read.coffee 我已经弄清楚,要更改身份验证时间,在 node-imap 包中可以在Connection.js文件(node_modules/imap/lib)中更改。我已将其更改为 15 秒,脚本可以工作,但它没有保存任何文件,也没有记录我。
标签: javascript node.js coffeescript