blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.81k stars 1.38k forks source link

Throw err; // Unhandled 'error' event #571

Closed nexuspcs closed 1 year ago

nexuspcs commented 1 year ago

Here is my output after running a node.js script for about 12 hours:

Connecting to TCP: blynk.cloud 80
Connected
Authorized
node:events:518
    throw err; // Unhandled 'error' event
    ^

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('ECONNRESET')
    at new NodeError (node:internal/errors:372:5)
    at Blynk.emit (node:events:516:17)
    at Blynk.error (/home/doorpi/myapp/node_modules/blynk-library/blynk.js:649:8)
    at exports.TcpClient.<anonymous> (/home/doorpi/myapp/node_modules/blynk-library/blynk.js:612:48)
    at exports.TcpClient.emit (node:events:527:28)
    at Socket.<anonymous> (/home/doorpi/myapp/node_modules/blynk-library/blynk-node.js:59:14)
    at Socket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ERR_UNHANDLED_ERROR',
  context: 'ECONNRESET'
}

Would be good for some help, I asked before, but nothing...

nexuspcs commented 1 year ago

I have also opened here: https://community.blynk.cc/t/node518-throw-err-unhandled-error-event/62621?u=npcs001

nexuspcs commented 1 year ago

any help would be nice....

vshymanskyy commented 1 year ago

Unrelated to this library