Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] Spotify "use for playback" Error 404

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Spotify "use for playback" Error 404

    This topic has been deleted. Only users with topic management privileges can see it.
    • DJMarc75
      DJMarc75 last edited by DJMarc75

      Tag,
      heute mal wieder mit dem SpotifyAdapter (V1.2.2) rumspielen wollen und hab dabei festgestellt dass beim setzen der DPs auf true

      spotify-premium.0.devices.xxx.useForPlayback
      

      folgende Fehlermeldung im LOG kommt:

      spotify-premium.0
      	2023-02-21 12:22:12.230	error	could not execute command: 404
      

      Kann das jemand bestätigen (bevor ich ein ISSUE auf GIT erstelle)

      Merci

      G 1 Reply Last reply Reply Quote 0
      • G
        Ghost-Talker @DJMarc75 last edited by

        @djmarc75

        Hab auch seit einigen Tagen/Wochen immer wieder das selbe Problem.

        Ein neu Einlesen der Playlists hatte anfangs noch geholfen.

        Jetzt geht wohl gar nichts mehr.

        
        spotify-premium.1
        2023-02-26 07:50:47.169	debug	spotify api call... /v1/me/player;
        
        spotify-premium.1
        2023-02-26 07:50:47.168	debug	call status polling
        
        spotify-premium.1
        2023-02-26 07:50:46.258	debug	context type: ""
        
        spotify-premium.1
        2023-02-26 07:50:46.165	error	could not execute command: 404
        
        spotify-premium.1
        2023-02-26 07:50:46.129	debug	spotify api call... /v1/me/player;
        
        spotify-premium.1
        2023-02-26 07:50:46.128	debug	call status polling
        
        spotify-premium.1
        2023-02-26 07:50:44.494	debug	spotify api call... /v1/me/player/play?device_id=;
        
        spotify-premium.1
        2023-02-26 07:50:44.494	debug	
        
        spotify-premium.1
        2023-02-26 07:50:44.493	debug	trigger: player.play -> {"val":true,"ack":false,"ts":1672085307948,"q":0,"from":"system.adapter.admin.0","user":"system.user.admin","lc":1672085307948}
        
        DJMarc75 1 Reply Last reply Reply Quote 0
        • DJMarc75
          DJMarc75 @Ghost-Talker last edited by

          @ghost-talker Hab da mal ein kleines Fass aufgemacht 😉

          https://github.com/iobroker-community-adapters/ioBroker.spotify-premium/issues/178

          djmarc75 created this issue in iobroker-community-adapters/ioBroker.spotify-premium

          closed UseForPlayback - ERROR 404 #178

          1 Reply Last reply Reply Quote 1
          • M
            MichiC00 last edited by

            Habe die Problematik im Spotfiy Forum entdeckt.
            Spotify kommt wohl mit den neuen Endungen der Echo Devices "_amzn_1" nicht klar.
            Entfernt man diese beim Nutzen der API funktioniert es wohl wieder.

            https://community.spotify.com/t5/Spotify-for-Developers/player-transfer-to-Echo-Dot-Groups-failing/td-p/5508585

            DJMarc75 1 Reply Last reply Reply Quote 1
            • DJMarc75
              DJMarc75 @MichiC00 last edited by DJMarc75

              @michic00
              Da es anscheinen mit der ID-Auflösung seitens Spotify von Amazondevices hakt hab ich das jetzt fürs Erste mal so umgesetzt:

              Screenshot 2023-02-27 125859.png

              ... und noch als JavaSkript:

              var deviceid, i, newid;
              
              
              deviceid = Array.prototype.slice.apply($("spotify-premium.0.devices.*.id"));
              for (var i_index in deviceid) {
                i = deviceid[i_index];
                if (getState(i).val.indexOf('_amzn_1') + 1 > 0) {
                  newid = getState(i).val.slice(0, parseFloat((getState(i).val.indexOf('_amzn_1') + 1)) - 1);
                  setStateDelayed(i, newid, false, parseInt(((0) || "").toString(), 10), false);
                }
              }
              

              Ist zwar nicht die feinste Lösung und es kommen natürlich einmalig Warnmeldungen im LOG wenn das Skript gestartet wird aber es klappt zumindest...

              Bin gespannt ob sich da Spotify und Amazon zeitnah einigen können 🙂

              edit: Skript muss nach Adapterneustart immer neu gestartet werden

              M 1 Reply Last reply Reply Quote 0
              • M
                MichiC00 @DJMarc75 last edited by

                @djmarc75
                Vielen Dank erst einmal für das Skript.

                Mit dem Skript ändert er die IDs zwar aber nach kurzer Zeit sind Sie wieder auf dem Ursprungszustand.
                Habe die Geräteaktualisierung im Spotify Adapter mal ausgeschaltet und trotzdem werden die IDs immer wieder um das _amzn_1 ergänzt. Hast du da noch eine Idee?

                DJMarc75 1 Reply Last reply Reply Quote 0
                • DJMarc75
                  DJMarc75 @MichiC00 last edited by DJMarc75

                  @michic00 sagte in Spotify "use for playback" Error 404:

                  ach kurzer Zeit sind Sie wieder auf dem Ursprungszustand

                  ja, eben festgestellt... bei mir alle 10 Sek wie ich die Einstellungen im Adapter habe:

                  Screenshot 2023-02-27 133425.png

                  var deviceid, i, newid;
                  
                  
                  deviceid = Array.prototype.slice.apply($("spotify-premium.0.devices.*.id"));
                  on({id: [].concat(deviceid), change: "ne"}, async function (obj) {
                    let value = obj.state.val;
                    let oldValue = obj.oldState.val;
                    for (var i_index in deviceid) {
                      i = deviceid[i_index];
                      if (getState(i).val.indexOf('_amzn_1') + 1 > 0) {
                        newid = getState(i).val.slice(0, parseFloat((getState(i).val.indexOf('_amzn_1') + 1)) - 1);
                        setStateDelayed(i, newid, false, parseInt(((0) || "").toString(), 10), false);
                      }
                    }
                  });
                  

                  So wird jedesmal wenn die originalen IDS geschrieben werden diese sofort wieder geändert - aber das LOG wird halt zugemüllt 😉

                  edit: hab mal den Intervall auf 3600 Sekunden gestellt.
                  Abfragen was grad läuft mach ich eh über den AlexaAdapter.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    MichiC00 @DJMarc75 last edited by

                    @djmarc75 Danke dir.
                    Ich habe nun noch das Problem.
                    a0c58bd0-828f-4eae-9059-a32c8b396d50-image.png

                    Aber ich denke da muss man wohl auf Spotify warten. Scheinen wirklich Probleme mit der API zu haben.
                    https://community.spotify.com/t5/Spotify-for-Developers/API-endpoint-me-top-tracks-returning-status-500/td-p/5511062
                    https://community.spotify.com/t5/Spotify-for-Developers/player-transfer-to-Echo-Dot-Groups-failing/m-p/5511057/highlight/true#M8106

                    DJMarc75 1 Reply Last reply Reply Quote 0
                    • DJMarc75
                      DJMarc75 @MichiC00 last edited by

                      @michic00 sagte in Spotify "use for playback" Error 404:

                      da muss man wohl auf Spotify warten.

                      ja, wird besser sein - es geht auch mal ne Weile ohne den Adapter 😁

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        MichiC00 @DJMarc75 last edited by MichiC00

                        @djmarc75
                        Hi, wollte kurz bescheid geben. Die API haben die wohl wieder repariert.
                        Funktioniert wieder einwandfrei bei mir. 😉

                        DJMarc75 1 Reply Last reply Reply Quote 1
                        • DJMarc75
                          DJMarc75 @MichiC00 last edited by

                          @michic00 na supi - funktioniert wieder... danke für die Info 👍

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          850
                          Online

                          31.7k
                          Users

                          79.8k
                          Topics

                          1.3m
                          Posts

                          3
                          11
                          571
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo