vokkim / sony-sdcp-com

NodeJS library for Sony SDCP / PJ Talk communication via TCP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting ECONNRESET after updating everything underneath sony-sdcp-com

RyuKojiro opened this issue · comments

# cat sdcp.js 
const {SdcpClient} = require('sony-sdcp-com')

const client = SdcpClient({address: '10.0.0.128', port: 53484})
client.getPower().then(state => {
	console.log(state)
})
# node sdcp.js 
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
  errno: -54,
  code: 'ECONNRESET',
  syscall: 'read'
}

Node.js v18.14.0