svrooij / node-sonos-ts

:speaker: Sonos control library, use this library in your own appliction.
https://sonos-ts.svrooij.io/
MIT License
80 stars 18 forks source link

BUG: Notification state stuck after failing to restore #156

Closed svrooij closed 2 years ago

svrooij commented 2 years ago

What happened

  1. Played external music (Deezer playlist started by Alexa)
  2. Started notification
  3. Notification played
  4. Music failed to restore (known issue with external music)
  5. New notifications won’t play

What did you expect to happen

See https://github.com/svrooij/sonos2mqtt/issues/156

How to reproduce it (minimal and precise)

Debug logging


2022-01-10T09:28:21.272Z [Warning] Error executing notify for Küche (RINCON_7828CA11B42001400) 
 SonosError: Sonos error on SetAVTransportURI UPnPError 714 (Illegal MIME-Type)
    at AVTransportService.handleErrorResponse (/usr/src/app/node_modules/@svrooij/sonos/lib/services/base-service.js:231:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async AVTransportService.handleRequest (/usr/src/app/node_modules/@svrooij/sonos/lib/services/base-service.js:188:16)
    at async AVTransportService.SoapRequestWithBodyNoResponse (/usr/src/app/node_modules/@svrooij/sonos/lib/services/base-service.js:123:16)
    at async AVTransportService.SetAVTransportURI (/usr/src/app/node_modules/@svrooij/sonos/lib/services/av-transport.service.js:209:45)
    at async SonosDevice.RestoreState (/usr/src/app/node_modules/@svrooij/sonos/lib/sonos-device.js:359:9)
    at async SonosDevice.PlayNotification (/usr/src/app/node_modules/@svrooij/sonos/lib/sonos-device.js:433:13)
    at async Function.ExecuteCommand (/usr/src/app/lib/sonos-command-mapping.js:38:24)
    at async Function.ExecuteControl (/usr/src/app/lib/sonos-command-mapping.js:8:20)
    at async EventEmitter.<anonymous> (/usr/src/app/lib/sonos-to-mqtt.js:84:34) {
  Action: 'SetAVTransportURI',
  FaultCode: 's:Client',
  Fault: 'UPnPError',
  UpnpErrorCode: 714,
  UpnpErrorDescription: 'Illegal MIME-Type'
}

Environment

Checklist

Please confirm the following before creating the issue.

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 2.5.0-beta.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 2.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: