MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Sonos Error at startup

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 3 Posters 1.1k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @AvatarED007
      last edited by

      @AvatarED007 didn’t see that!..

      A 503 Service Unavailable Error is an HTTP response status code indicating that a server is temporarily unable to handle the request. This may be due to the server being overloaded or down for maintenance

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • T Offline
        tbouron Module Developer
        last edited by

        @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?
        A 1 Reply Last reply Reply Quote 0
        • A Offline
          AvatarED007 @tbouron
          last edited by

          @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...
          
          
          T 1 Reply Last reply Reply Quote 0
          • T Offline
            tbouron Module Developer @AvatarED007
            last edited by

            @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?

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              AvatarED007 @tbouron
              last edited by AvatarED007

              @tbouron

              I do not have more log. At startup no errors. Yes I have all on the latest version 10.6.1

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                tbouron Module Developer @AvatarED007
                last edited by

                @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 :(

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy