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.

    MMM-NowPlayingOnSpotify stop working after v2.13 update

    Scheduled Pinned Locked Moved Troubleshooting
    46 Posts 3 Posters 20.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.
    • P Offline
      panos
      last edited by panos

      Hello.
      I get the following error since I updated to MM v2.13

      [0|mm     | [2020-10-03 19:55:18.881] [ERROR]  
      0|mm     | Can’t retrieve current song. Reason: 
      0|mm     | [2020-10-03 19:55:18.882] [ERROR]  
      0|mm     | RequestError: Error: Client network socket disconnected before secure TLS connection was established
      0|mm     |     at new RequestError (/home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request-promise-core/lib/errors.js:14:15)
      0|mm     |     at Request.plumbing.callback (/home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request-promise-core/lib/plumbing.js:87:29)
      0|mm     |     at Request.RP$callback [as _callback] (/home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request-promise-core/lib/plumbing.js:46:31)
      0|mm     |     at self.callback (/home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request/request.js:185:22)
      0|mm     |     at Request.emit (events.js:200:13)
      0|mm     |     at Request.onRequestError (/home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request/request.js:877:8)
      0|mm     |     at ClientRequest.emit (events.js:200:13)
      0|mm     |     at TLSSocket.socketErrorListener (_http_client.js:402:9)
      0|mm     |     at TLSSocket.emit (events.js:200:13)
      0|mm     |     at emitErrorNT (internal/streams/destroy.js:91:8) {
      0|mm     |   name: 'RequestError',
      0|mm     |   message: 'Error: Client network socket disconnected ' +
      0|mm     |     'before secure TLS connection was ' +
      0|mm     |     'established',
      0|mm     |   cause: Error: Client network socket disconnected before secure TLS connection was established
      0|mm     |       at connResetException (internal/errors.js:559:14)
      0|mm     |       at TLSSocket.onConnectEnd (_tls_wrap.js:1355:19)
      0|mm     |       at Object.onceWrapper (events.js:288:20)
      0|mm     |       at TLSSocket.emit (events.js:205:15)
      0|mm     |       at endReadableNT (_stream_readable.js:1154:12)
      0|mm     |       at processTicksAndRejections (internal/process/task_queues.js:84:9) {
      0|mm     |     code: 'ECONNRESET',
      0|mm     |     path: null,
      0|mm     |     host: 'api.spotify.com',
      0|mm     |     port: 443,
      0|mm     |     localAddress: undefined
      0|mm     |   },
      0|mm     |   error: Error: Client network socket disconnected before secure TLS connection was established
      0|mm     |       at connResetException (internal/errors.js:559:14)
      0|mm     |       at TLSSocket.onConnectEnd (_tls_wrap.js:1355:19)
      0|mm     |       at Object.onceWrapper (events.js:288:20)
      0|mm     |       at TLSSocket.emit (events.js:205:15)
      0|mm     |       at endReadableNT (_stream_readable.js:1154:12)
      0|mm     |       at processTicksAndRejections (internal/process/task_queues.js:84:9) {
      0|mm     |     code: 'ECONNRESET',
      0|mm     |     path: null,
      0|mm     |     host: 'api.spotify.com',
      0|mm     |     port: 443,
      0|mm     |     localAddress: undefined
      0|mm     |   },
      0|mm     |   options: {
      0|mm     |     url: 'https://api.spotify.com/v1/me/player',
      0|mm     |     headers: {
      0|mm     |       Authorization: 'Bearer ' +
      0|mm     |         'BQBRDGEfWRoLJxBqiqioyoWh4GE5glEZQtZKAmgwYj8PiRhKDh9l796Ehlo7URvaB-_22gnk2Ybr7OxENlnlZS9S247mYnDa7-yzRnw0B6jug8-arHzcWMUr8xViOkVJMsKGink3bHhdiNmezkfFeA'
      0|mm     |     },
      0|mm     |     json: true,
      0|mm     |     method: 'GET',
      0|mm     |     callback: [Function: RP$callback],
      0|mm     |     transform: undefined,
      0|mm     |     simple: true,
      0|mm     |     resolveWithFullResponse: false,
      0|mm     |     transform2xxOnly: false
      0|mm     |   },
      0|mm     |   response: undefined
      0|mm     | }](link url)
      

      Any suggestions?

      1 Reply Last reply Reply Quote 0
      • C Offline
        chassain 0
        last edited by

        hello,

        I don’t know about spotify but with update 2.13 i need to reload modules needing npm install or some dependances.

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @chassain 0
          last edited by

          @chassain-0 IF you have to reload depenedencies on MM, then you MUST reload them in each module that uses a package.json

          that is why I built the upgrade_script… nobody knows… just use the script…

          see here https://github.com/sdetweil/MagicMirror_scripts

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Reply Quote 0
          • P Offline
            panos
            last edited by

            Hello.
            I have completely uninstall the module and install it again. Still no luck.
            All other modules works as they should.

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @panos
              last edited by

              @panos when was the last time you used it?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              P 1 Reply Last reply Reply Quote 0
              • C Offline
                chassain 0 @sdetweil
                last edited by

                @sdetweil
                i know…i take your great script at each update. i did this tonight…After a black screen, i had to reload modules (google photos, customer-flight, etc which need more than a npm)

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @chassain 0
                  last edited by

                  @chassain-0 please show me the errors so I can fix them

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    chassain 0 @sdetweil
                    last edited by

                    @sdetweil too late…all is ok now…and i delete log…for next time :)

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @chassain 0
                      last edited by

                      @chassain-0 i know…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      C 1 Reply Last reply Reply Quote 0
                      • P Offline
                        panos @sdetweil
                        last edited by

                        @sdetweil
                        I don’t remember exactly, but I think that it was working 3-4 days ago

                        S 1 Reply Last reply Reply Quote 0
                        • C Offline
                          chassain 0
                          last edited by

                          i have spotify in a raspberry with a old update…I’m going to check if script is ok with this module

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            chassain 0
                            last edited by

                            doing test run processing complete for all modules in first

                            P 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @panos
                              last edited by

                              @panos and if you use spotify client on some other device it works ok?

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              P 1 Reply Last reply Reply Quote 0
                              • P Offline
                                panos @chassain 0
                                last edited by panos

                                @chassain-0
                                I don’t know why this happens then.
                                I run npm install on more time and rerun the authentication process via browser. (In order to update the token)
                                Still the same error.

                                C 1 Reply Last reply Reply Quote 0
                                • C Offline
                                  chassain 0 @panos
                                  last edited by

                                  @panos i’m running the script for this raspberry…wait and i give you the result

                                  P 1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    panos @sdetweil
                                    last edited by

                                    @sdetweil
                                    Yes. I’m able to listen via Spotify app on both mobile/desktop

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      chassain 0
                                      last edited by

                                      Capture d’écran de 2020-10-03 20-28-51.png

                                      always in running

                                      P 1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        panos @chassain 0
                                        last edited by

                                        @chassain-0
                                        Thanks
                                        I update mine via “git pull && npm install” command

                                        C 1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          chassain 0 @panos
                                          last edited by

                                          @panos
                                          use sdetweil script…it’s better

                                          1 Reply Last reply Reply Quote 0
                                          • C Offline
                                            chassain 0 @sdetweil
                                            last edited by

                                            @sdetweil Capture d’écran de 2020-10-03 20-34-11.png

                                            what i need to do after ?

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • 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