mscdex / node-imap

An IMAP client module for node.js.
MIT License
2.16k stars 380 forks source link

Connection.js:191:10 Cannot read properties of undefined (reading 'fullcmd') #917

Open ayounas02 opened 5 months ago

ayounas02 commented 5 months ago
image

sometimes I get this error. Can someone please share a fix for this issue?

`2024-05-01 15:55:05.623
at process.processTicksAndRejections (node:internal/process/taskqueues:81:21) 2024-05-01 15:55:05.623 at emitReadable (node:internal/streams/readable:832:12)

2024-05-01 15:55:05.623 at TLSSocket.emit (node:domain:488:12) 2024-05-01 15:55:05.623 at TLSSocket.emit (node:events:518:28) 2024-05-01 15:55:05.623 at Parser._cbReadable (/app/node_modules/imap/lib/Parser.js:53:12) 2024-05-01 15:55:05.623 at Parser._tryread (/app/node_modules/imap/lib/Parser.js:82:15) 2024-05-01 15:55:05.623 at Parser._parse (/app/node_modules/imap/lib/Parser.js:137:16) 2024-05-01 15:55:05.623 at Parser._resUntagged (/app/node_modules/imap/lib/Parser.js:271:10) 2024-05-01 15:55:05.623 at Parser.emit (node:domain:488:12) 2024-05-01 15:55:05.623 at Parser.emit (node:events:518:28) 2024-05-01 15:55:05.623 at Parser. (/app/node_modules/imap/lib/Connection.js:191:10) 2024-05-01 15:55:05.623 at Connection._resUntagged (/app/node_modules/imap/lib/Connection.js:1408:45) 2024-05-01 15:55:05.623 TypeError: Cannot read properties of undefined (reading 'fullcmd') 2024-05-01 15:55:05.623

2024-05-01 15:55:05.623 ^ 2024-05-01 15:55:05.623 if (/^(?:UID )?FETCH/.test(this._curReq.fullcmd)) { 2024-05-01 15:55:05.623 /app/node_modules/imap/lib/Connection.js:1408`