stanford-oval / thingpedia-common-devices

Thingpedia interface code for commonly used devices
Other
38 stars 28 forks source link

Stop command fails in Spotify #428

Closed gcampax closed 3 years ago

gcampax commented 3 years ago

The music stops, but the agent replies with an error:

HTTP request failed: {
  "error" : {
    "status" : 403,
    "message" : "Player command failed: Restriction violated",
    "reason" : "UNKNOWN"
  }
}
Error: Player command failed: Restriction violated
    at /home/almond-cloud/cache/device-classes/com.spotify/index.js:134:19
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async AudioController._releaseCallback (/home/almond-cloud/cache/device-classes/com.spotify/index.js:970:17)
    at async AudioController.stopAudio (/opt/almond-cloud/node_modules/genie-toolkit/lib/engine/audio_controller.ts:111:13)
    at async DialogueLoop._handleUICommand (/opt/almond-cloud/node_modules/genie-toolkit/lib/dialogue-agent/dialogue-loop.ts:382:17)
    at async DialogueLoop._handleUserInput (/opt/almond-cloud/node_modules/genie-toolkit/lib/dialogue-agent/dialogue-loop.ts:430:17)
    at async DialogueLoop._loop (/opt/almond-cloud/node_modules/genie-toolkit/lib/dialogue-agent/dialogue-loop.ts:490:21)