ricallinson / telegraphy

Giving messages a physical side with an Arduino microcontroller.
1 stars 0 forks source link

Node application crashes due to unknown IMAP bug #1

Open ricallinson opened 11 years ago

ricallinson commented 11 years ago

It seems that after the node application has been running for some time it randomly crashes. This is seen on a Raspberry Pi running Raspbian “wheezy”.

My guess is that the crash is triggered by the imap code. As if there are no email accounts setup the application does not crash.

ricallinson commented 11 years ago

Found possible error;

Opening configuration files to check. data: Checking imap account for mailbox "xxx@yahoo.co.uk" . data:
data: events.js:48 data: throw arguments[1]; // Unhandled 'error' event data: ^ data: Error: Received negative welcome (internal server error (#IS6530)) data: at CleartextStream.ondata (/home/pi/telegraphy/node/node_modules/imap/lib/imap.js:581:25) data: at CleartextStream.emit (events.js:67:17) data: at CleartextStream._push (tls.js:371:12) data: at SecurePair.cycle (tls.js:734:20) data: at EncryptedStream.write (tls.js:130:13) data: at Socket.ondata (stream.js:38:26) data: at Socket.emit (events.js:67:17) data: at TCP.onread (net.js:367:14)

ricallinson commented 11 years ago

This could be from mails with an empty subject. This is fixed with commit https://github.com/ricallinson/telegraphy/commit/8bee6d5a43f8c90b30a509ee204549f5b4ff03ae

I don't think it was the cause of the first issue.