sanlike0911 / node-red-contrib-tplink-tapo-connect-api

Apache License 2.0
48 stars 20 forks source link

Socket hang up error for Tapo P100 #28

Open waqaslam opened 1 year ago

waqaslam commented 1 year ago

I'm trying to setup my Tapo P100 using the IP address, but I get the following error:

Error: socket hang up
    at connResetException (node:internal/errors:717:14)
    at Socket.socketOnEnd (node:_http_client:520:23)
    at Socket.emit (node:events:524:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

I can ping to the tapo device without any problem. Any help would be appreciated

nyasu3w commented 1 year ago

I had faced the same issue on nodejs-20 on Alpine linux after I update the system from nodejs-18.9.1. My fix is restoring the old system from backup and store again my updated flows. (I suspect that the new nodejs is more restricted at closing sockets. I do not have an idea who shall fix it

Pisgah commented 9 months ago

I meet the same problem after upgrade from buster to bullseye. I use nvm to switch between different version, but it's still there, any suggestion ? thanks !