evandcoleman / node-appletv

A node module for interacting with an Apple TV (4th-generation or later) over the Media Remote Protocol.
https://evandcoleman.github.io/node-appletv/
MIT License
180 stars 48 forks source link

Error code 2 - Try rebooting your Apple TV #51

Open TheRealLink opened 3 years ago

TheRealLink commented 3 years ago

Hey,

I successfully paired my application with the Apple TV using the v2 branch. Unfortunately I receive following error on initiating a connection with it

(node:71918) UnhandledPromiseRejectionWarning: Error: Wohnzimmer Apple TV responded with error code 2. Try rebooting your Apple TV. at PairingClient.<anonymous> (/Users/dennis/Development/Homey/node-appletv/dist/lib/pairing/client.js:78:23) at Generator.next (<anonymous>) at /Users/dennis/Development/Homey/node-appletv/dist/lib/pairing/client.js:8:71 at new Promise (<anonymous>) at __awaiter (/Users/dennis/Development/Homey/node-appletv/dist/lib/pairing/client.js:4:12) at PairingClient.handle (/Users/dennis/Development/Homey/node-appletv/dist/lib/pairing/client.js:65:16) at TVClient.onReceiveMessage (/Users/dennis/Development/Homey/node-appletv/dist/lib/tvclient.js:305:32) at TVClient.<anonymous> (/Users/dennis/Development/Homey/node-appletv/dist/lib/tvclient.js:311:18) at TVClient.emit (events.js:315:20) at TVClient.<anonymous> (/Users/dennis/Development/Homey/node-appletv/dist/lib/appletv.js:167:22) at Generator.next (<anonymous>) at fulfilled (/Users/dennis/Development/Homey/node-appletv/dist/lib/appletv.js:5:58)

Node Version: v12.16.1 Arch: arm