Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled error (at TLSSocket.<anonymous> (/.../RemoteManager.js:107:21)) #40

Open
raintonr opened this issue Feb 24, 2024 · 0 comments

Comments

@raintonr
Copy link

This was all working fine up until today. My previously paired TV stopped working so attempted a re-pair and got the same error. Here's what it looks like when using the example.js script:

$ node ./example.js 
Start Pairing Connect
tv Pairing connected
tv Pairing secure connected 
Receive : 7,8,2,16,200,1,90,0
Receive : {"protocolVersion":2,"status":"STATUS_OK","pairingRequestAck":{}}
Receive : 16,8,2,16,200,1,162,1,8,18,4,8,3,16,6,24,1
Receive : {"protocolVersion":2,"status":"STATUS_OK","pairingOption":{"outputEncodings":[{"type":"ENCODING_TYPE_HEXADECIMAL","symbolLength":6}],"preferredRole":"ROLE_TYPE_INPUT"}}
Receive : 8,8,2,16,200,1,250,1,0
Receive : {"protocolVersion":2,"status":"STATUS_OK","pairingConfigurationAck":{}}
Code : XXXXXX
Sending code :  XXXXXX
Receive : 42,8,2,16,200,1,202,2,34,10,32,174,196,77,47,215,11,128,83,224,226,179,60,125,89,172,113,64,113,167,2,112,94,191,75,48,212,3,172,224,155,96,254
Receive : {"protocolVersion":2,"status":"STATUS_OK","pairingSecretAck":{"secret":"rsRNL9cLgFPg4rM8fVmscUBxpwJwXr9LMNQDrOCbYP4="}}
tv Paired!
tv Pairing Connection closed false
Start Remote Connect
tv Remote secureConnect
tv Receive : {"remoteConfigure":{"code1":637,"deviceInfo":{"model":"BRAVIA 4K GB","vendor":"Sony","unknown1":1,"unknown2":"9","packageName":"com.google.android.tv.remote.service","appVersion":"5.2.473254133"}}}
Create Remote {"remoteConfigure":{"code1":622,"deviceInfo":{"model":"21K9CTO1WW","vendor":"LENOVO","unknown1":1,"unknown2":"1","packageName":"androitv-remote","appVersion":"1.0.0"}}}
Sending {"remoteConfigure":{"code1":622,"deviceInfo":{"model":"21K9CTO1WW","vendor":"LENOVO","unknown1":1,"unknown2":"1","packageName":"androitv-remote","appVersion":"1.0.0"}}}
tv Receive : {"remoteError":{"value":true,"message":{"remoteConfigure":{"code1":622,"deviceInfo":{"model":"21K9CTO1WW","vendor":"LENOVO","unknown1":1,"unknown2":"1","packageName":"androitv-remote","appVersion":"1.0.0"}}}}}
node:events:505
    throw err; // Unhandled 'error' event
    ^

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
  error: RemoteError {
    value: true,
    message: RemoteMessage { remoteConfigure: [RemoteConfigure] }
  }
})
    at RemoteManager.emit (node:events:503:17)
    at TLSSocket.<anonymous> (/home/xxx/node_modules/androidtv-remote/dist/remote/RemoteManager.js:107:21)
    at TLSSocket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:545:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:495:3)
    at Readable.push (node:internal/streams/readable:375:5)
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23) {
  code: 'ERR_UNHANDLED_ERROR',
  context: {
    error: RemoteError {
      value: true,
      message: RemoteMessage {
        remoteConfigure: RemoteConfigure {
          code1: 622,
          deviceInfo: RemoteDeviceInfo {
            model: '21K9CTO1WW',
            vendor: 'LENOVO',
            unknown1: 1,
            unknown2: '1',
            packageName: 'androitv-remote',
            appVersion: '1.0.0'
          }
        }
      }
    }
  }
}

Node.js v20.10.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant