直接把端口写在代码中
finding local eWelink devices
node:events:346
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED 172.30.32.1:8123
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1137:16)
Emitted 'error' event on WebSocket instance at:
at ClientRequest.<anonymous> (/workspace/node_modules/ws/lib/websocket.js:579:15)
at ClientRequest.emit (node:events:369:20)
at Socket.socketErrorListener (node:_http_client:469:9)
at Socket.emit (node:events:369:20)
at emitErrorNT (node:internal/streams/destroy:188:8)
at emitErrorCloseNT (node:internal/streams/destroy:153:3)
at processTicksAndRejections (node:internal/process/task_queues:81:21) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '172.30.32.1',
port: 8123
}
|