RPi TLSSocket Errors

Hi guys,

I’ve been running a small test project on my RPi for a couple of days and have recently been getting this error:

      throw Error('Uncaught, unspecified "error" event.');
Error: Uncaught, unspecified "error" event.
    at Error (native)
    at emit (events.js:87:13)
    at Blynk.error (/home/pi/node_modules/blynk-library/blynk.js:589:8)
    at null.<anonymous> (/home/pi/node_modules/blynk-library/blynk.js:552:48)
    at emit (events.js:107:17)
    at TLSSocket.<anonymous> (/home/pi/node_modules/blynk-library/blynk-node.js:204:16)
    at TLSSocket.emit (events.js:107:17)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)

I started from scratch with a newly formatted SD card, updated Raspian, installed node, npm etc then the blynk-library and am using the DHT22 code from this:

GitHub - momenso/node-dht-sensor: Node.js Humidity and Temperature sensor addon

It was running fine for about 24 hours and now this happens quite regularly. I’m using forever to restart my script if it crashes but I’m hoping to fix it altogether.