I don't know why but suddenly, everytime I'm trying to log in on my app I get the following error :
.\node_modules\imap\lib\Connection.js:206
var type = self._curReq.type;
TypeError: Cannot read property 'type' of undefined
at Parser.<anonymous> (.\node_modules\imap\lib\Connection.js:206:28)
at Parser.emit (events.js:95:17)
at Parser._resContinue (.\node_modules\imap\lib\Parser.js:295:8)
at Parser._parse (.\node_modules\imap\lib\Parser.js:140:16)
at Parser._tryread (.\node_modules\imap\lib\Parser.js:82:15)
at CleartextStream.Parser._cbReadable (.\node_modules\imap\lib\Parser.js:53:12)
at CleartextStream.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:410:10)
at _stream_readable.js:403:7
at process._tickCallback (node.js:419:13)```
I tried to comment the lines but then I get everytime the following error :
events.js:72
throw er; // Unhandled 'error' event
Error: Timed out while authenticating with server
at null._onTimeout (.\node_modules\imap\lib\Connection.js:133:17)
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)```
Sometimes I also get the second one instead of the first one even though the lines are not commented. Does anyone have an idea of what's going on? A solution or at least an explanation?