Read the statement by Michael Teeuw here.
Sonos Error at startup
-
@AvatarED007 Do you have more logs after what you shared? Did the module managed to connect to at least one Sonos device?
FYI, error 503 and 405 suggest that the module is trying to discover a device on your network and get the groups, but fails at doing so. There are quite a lot possibilities why this can happen:
- Is your mirror on the same network as your Sonos devices?
- Are your Sonos devices on and connected?
- Are your Sonos devices up to date?
-
@tbouron thanks for your feedback.
All the Sonos devices are online and the MagicMirror ison the same network.
[14:13:03.186] [LOG] Zones have changed. Rediscovering all groups ... [14:13:03.799] [ERROR] (node:18039) UnhandledPromiseRejectionWarning: Error: Request failed with status code 405 at createError (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/adapters/http.js:237:11) at IncomingMessage.emit (events.js:205:15) at endReadableNT (_stream_readable.js:1154:12) at processTicksAndRejections (internal/process/task_queues.js:84:9) [14:13:03.804] [ERROR] (node:18039) UnhandledPromiseRejectionWarning: Error: Request failed with status code 405 at createError (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/adapters/http.js:237:11) at IncomingMessage.emit (events.js:205:15) at endReadableNT (_stream_readable.js:1154:12) at processTicksAndRejections (internal/process/task_queues.js:84:9) [14:13:03.808] [ERROR] (node:18039) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) [14:13:03.811] [ERROR] (node:18039) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) [14:13:03.813] [ERROR] (node:18039) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [14:13:03.819] [ERROR] (node:18039) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [14:13:04.723] [ERROR] (node:18039) UnhandledPromiseRejectionWarning: Error: Request failed with status code 405 at createError (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/adapters/http.js:237:11) at IncomingMessage.emit (events.js:205:15) at endReadableNT (_stream_readable.js:1154:12) at processTicksAndRejections (internal/process/task_queues.js:84:9) [14:13:04.724] [ERROR] (node:18039) UnhandledPromiseRejectionWarning: Error: Request failed with status code 405 at createError (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/axios/lib/adapters/http.js:237:11) at IncomingMessage.emit (events.js:205:15) at endReadableNT (_stream_readable.js:1154:12) at processTicksAndRejections (internal/process/task_queues.js:84:9) [14:13:04.726] [ERROR] (node:18039) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7) [14:13:04.728] [ERROR] (node:18039) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7) ^C[14:13:21.111] [LOG] Shutting down server...
-
@AvatarED007 Hum, it doesn’t make any sense. The discover should retry even if there is an error, something is wrong here.
Can post the entire log file please? Also, are you sure all your sonos devices are up to date?
-
I do not have more log. At startup no errors. Yes I have all on the latest version 10.6.1
-
@AvatarED007 If there is no error at start up, that means the module is able to fetch the groups fine. But based on the latest logs you shared, it fails to fetch again the groups when the change, which would indicate that somehow the module (hence the mirror) loose the connection to the speakers later on. Maybe your mirror has a flaky connection?
Unfortunately, I cannot reproduce this so it’s going to be impossible to assist further :(