Les commandes ne fonctionnent plus

Bonjour,

Tout est dans le titre :slight_smile:
Je teste par exemple pause ou next et voici les logs:

[2024-02-29 20:09:13]DEBUG : --- EXECUTE pause / {"user_login":"admin","user_id":"1"} ---
[2024-02-29 20:09:13]DEBUG : --- CLIENT ID 1e8d9a63e8154d08935639ba48 ---
[2024-02-29 20:09:13]DEBUG : --- CLIENT SECRET 4da27ccef9ce36abbbddb1304 ---
[2024-02-29 20:09:13]DEBUG : --- EXPIRATION TIME 1709235708 ---
[2024-02-29 20:09:13]DEBUG : --- ACCESS TOKEN BQDCyQvhmVx7LKghS353fq8mzNrBw4tQnfB4JTTw11sRsQ09FrpxdbxpPAcjvAdOiZHqdeyCUcQikO1tbEzIr6eCU4iK3qM9OglbP_mK_5PNbnr1hLo05n3IOXTNrjNuG0ilVq7tXrg7k_ES1nwhhOTmLxXaWPaijvUvDMhZlVJNxCJL5UfNlBwwdMiKN2UaSmM6tQKx2cHpPhOqjN1x1FmVxZyY5K4wDmm8wYbxYe-w ---
[2024-02-29 20:09:13]DEBUG : --- REFRESH TOKEN AQBn9-oFBzOqMnaOFMK_XuWUded1JjWF5hnZMivlgxUJ07Jm27ncAY8pRo3vhYBRs58cU8xvKvkC0zg5yZeGyILtQysbddscW-e4asggL_6RY ---
[2024-02-29 20:09:13]DEBUG : --- PAUSE REQUESTED ---
[2024-02-29 20:09:14]ERROR : Erreur exécution de la commande [Multimédia][Spotify][Pause] : An unknown error occurred.
[2024-02-29 20:09:27]DEBUG : --- EXECUTE next / {"user_login":"admin","user_id":"1"} ---
[2024-02-29 20:09:27]DEBUG : --- CLIENT ID 1e8d9a63e8092f1939ba48 ---
[2024-02-29 20:09:27]DEBUG : --- CLIENT SECRET 4da27ccefabbbddb1304 ---
[2024-02-29 20:09:27]DEBUG : --- EXPIRATION TIME 1709235708 ---
[2024-02-29 20:09:27]DEBUG : --- ACCESS TOKEN BQDCyQvhmVx7LKghS353fq8mzNrBw4tQnfB4JTTw11sRsQ09FrpxdbxpPAcjvAdOiZHqdeyCUcQikO1tbEzIr6eCU4iKGj2h80DEd3XVKjAPg9OglbP_mK_5PNbnr1hLo05n3IOXTNrjNuG0ilVq7tXrg7k_ES1nwhhOTmLxXaWPaijvUvDMhZlVJNxCJL5UfNlBwwdMiKN2UaSmM6tQKx2cHpPhOqjN1x1FmVxZyY5K4wDmm8wYbxYe-w ---
[2024-02-29 20:09:27]DEBUG : --- REFRESH TOKEN AQBn9-oFBzOqMnaOFMK_XuWUQAYG0B26vluygMivl62yZClgxUJ07Jm27ncAY8pRo3vhYBRs58cU8xvKvkC0zg5yZeGyILtQysbddscW-e4asggL_6RY ---
[2024-02-29 20:09:27]DEBUG : --- NEXT REQUESTED ---
[2024-02-29 20:09:27]ERROR : Erreur exécution de la commande [Multimédia][Spotify][Next] : An unknown error occurred.

Cela à l’air OK coté token, mais comment s’en assurer ?

Merci

Mon premier réflexe, récupérer un autre cookie mais j’ai toujours galéré a le récupérer:

Je suis bien sur l’onglet réseau, le filtre: open.spotify.com et rien alors que j’ai bien en lecture un morceau.

Si vous avez une idée :-). merci

je trouve le mot cookie mais toujours pas la bonne chaine de caractères

J’ai également cette vue:

Dans la doc on doit rechercher get_access_token, mais pas ce mot clé de mon coté :frowning:

sinon j’ai trouvé ceci:

par contre je ne sais pas comment faire une fois que j’ai mis ceci avec mes infos:

:thinking:

personne pour un coup de pouce ? :frowning:

Forum où je parle solo, au moins si mes recherches peuvent aider certains. :yum:
Je teste encore:

Le token ici je ne sais pas quelle est sa durée de vie …

Doc mise à jour avec pas mal de retard, dsl

hello @sbarre35.
Pas de souci. par contre un souci:

deamon KO mais dans les logs cela dit le contraire:



[2024-11-02 11:27:12] ERROR  : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2024-11-02 11:27:12] DEBUG  : --- DAEMON START ---
[2024-11-02 11:27:12] DEBUG  : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2024-11-02 11:27:12] DEBUG  : --- PROTOCOL = HTTPS ---
[2024-11-02 11:27:12] DEBUG  : --- KEY = GbZAC79jYupqrnqJSjbnRsNZR3s5xwEw3y9W126SniPmqLuw9ViOjtARhCnG2tIi ---
[2024-11-02 11:27:12] DEBUG  : --- NET = https://:80 ---
[2024-11-02 11:27:12] DEBUG  : --- URL = https://:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=GbZAC79jYupqrsdfgfdssdfdsdf26SniPmqLuw9ViOjtARhCnG2tIi ---
[2024-11-02 11:27:12] DEBUG  : --- LOG LEVEL = 100 ---
[2024-11-02 11:27:12] DEBUG  : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2024-11-02 11:27:12] DEBUG  : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "https://:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=GbZAC79jYupqrnqJSjbqsdfdsdfds6SniPmqLuw9ViOjtARhCnG2tIi" "100" "HTTPS" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2024-11-02 11:27:12] DEBUG  : --- RESULT =  ---
[2024-11-02 11:27:12] DEBUG  : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2024-11-02 11:27:12] DEBUG  : --- DAEMON START SUCCEED ---

Il ne prend pas l’adresse…

NET = https://:80 ---

[2024:11:02 12:30:03] DEBUG [spotify             ] BEGIN
[2024:11:02 12:30:03] DEBUG [configRequest       ] BEGIN
[2024:11:02 12:30:03] DEBUG [configRequest       ] PROTOCOL = HTTPS
[2024:11:02 12:30:03][INFO-][configRequest       ] >> https://:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=GbZAC79jYupqrnqxxxxxxxwEw3y9W126SniPmqLuw9ViOjtARhCnG2tIi
node:internal/url:797
this.#updateContext(bindingUrl.parse(input, base));
^
TypeError: Invalid URL
at new URL (node:internal/url:797:36)
at request (node:https:367:32)
at Object.get (node:https:415:15)
at configRequest (/var/www/html/plugins/spotify/ressources/spotify.js:192:14)
at Object.<anonymous> (/var/www/html/plugins/spotify/ressources/spotify.js:770:1)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) {
code: 'ERR_INVALID_URL',
input: 'https://:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=GbZAC79jYupqrnqJSjbxxxx6SniPmqLuw9ViOjtARhCnG2tIi'
}
Node.js v20.17.0

mhmmh qq chose a sauté …

en reconfigurant le réseau toujours un souci:

[2024:11:02 12:39:33] DEBUG [spotify             ] BEGIN
[2024:11:02 12:39:33] DEBUG [configRequest       ] BEGIN
[2024:11:02 12:39:33] DEBUG [configRequest       ] PROTOCOL = HTTP
[2024:11:02 12:39:33][INFO-][configRequest       ] >> http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?xxxxrnqJSjbnRsNZR3s5xwEw3y9W126SniPmqLuw9ViOjtARhCnG2tIi
[2024:11:02 12:39:33] DEBUG [configRequest       ] END
[2024:11:02 12:39:33] DEBUG [spotify             ] END
[2024:11:02 12:39:33] DEBUG [configResponse      ] BEGIN
[2024:11:02 12:39:33][INFO-][configRequest       ] << {"state":"ok","result":{"apikey":"GbZAC79jYupqrnqJSjbnRsNZR3s5xwExxxniPmqLuw9ViOjtARhCnG2tIi","commands":"[{\"token\":\"AQCtw4Tj0SITFquW8Z6vOY53CEdEXcnw-SMymZ7Gu16SWdohqKmp-4GtxxxxxKAS3Ja9iO5eNp_iYtFncBlFfK3BGmSJuPYewx34WL6mIVplYV8\",\"id\":\"1041\"}]","itemcallback":"http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=#APIKEY#&type=spotify&action=item&id=#ID#&item_id=#ITEM_ID#&item_album=#ITEM_ALBUM#&item_title=#ITEM_TITLE#&item_artist=#ITEM_ARTIST#&item_image=#ITEM_IMAGE#&context_type=#CONTEXT_TYPE#&context_uri=#CONTEXT_URI#","devicecallback":"http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=#APIKEY#&type=spotify&action=device&id=#ID#&device_id=#DEVICE_ID#&device_name=#DEVICE_NAME#&device_type=#DEVICE_TYPE#&device_volume=#DEVICE_VOLUME#&device_is_active=#DEVICE_IS_ACTIVE#&device_is_restricted=#DEVICE_IS_RESTRICTED#","playlistcallback":"http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=#APIKEY#&type=spotify&action=playlist&id=#ID#&playlist_id=#PLAYLIST_ID#&playlist_name=#PLAYLIST_NAME#","shufflecallback":"http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=#APIKEY#&id=#ID#&state=#STATE#&action=shuffle","refreshcallback":"http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=#APIKEY#&i=#I#&id=#ID#&action=refresh_token"}}
[2024:11:02 12:39:33][INFO-][configResponse      ] API KEY = GbZAC79jYupqrnqJSjbnRsNZR3s5xwEw3y9W126SniPmqLuw9ViOjtARhCnG2tIi
[2024:11:02 12:39:33][INFO-][configResponse      ] COMMANDS = [{"token":"AQCtw4Tj0SITFquW8Z6vOY53CEdEXcnw-SMymZ7Gu16SWdohqKxxxxxpqTXEbUEhdDkKAS3Ja9iO5eNp_iYtFncBlFfK3BGmSJuPYewx34WL6mIVplYV8","id":"1041"}]
[2024:11:02 12:39:33][INFO-][configResponse      ] ITEM CALLBACK = http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=#APIKEY#&type=spotify&action=item&id=#ID#&item_id=#ITEM_ID#&item_album=#ITEM_ALBUM#&item_title=#ITEM_TITLE#&item_artist=#ITEM_ARTIST#&item_image=#ITEM_IMAGE#&context_type=#CONTEXT_TYPE#&context_uri=#CONTEXT_URI#
[2024:11:02 12:39:33][INFO-][configResponse      ] DEVICE CALLBACK = http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=#APIKEY#&type=spotify&action=device&id=#ID#&device_id=#DEVICE_ID#&device_name=#DEVICE_NAME#&device_type=#DEVICE_TYPE#&device_volume=#DEVICE_VOLUME#&device_is_active=#DEVICE_IS_ACTIVE#&device_is_restricted=#DEVICE_IS_RESTRICTED#
[2024:11:02 12:39:33][INFO-][configResponse      ] PLAYLIST CALLBACK = http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=#APIKEY#&type=spotify&action=playlist&id=#ID#&playlist_id=#PLAYLIST_ID#&playlist_name=#PLAYLIST_NAME#
[2024:11:02 12:39:33][INFO-][configResponse      ] SHUFFLE CALLBACK = http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=#APIKEY#&id=#ID#&state=#STATE#&action=shuffle
[2024:11:02 12:39:33][INFO-][configResponse      ] REFRESH CALLBACK = http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=#APIKEY#&i=#I#&id=#ID#&action=refresh_token
[2024:11:02 12:39:33] DEBUG [configResponse      ] END
[2024:11:02 12:39:34] DEBUG [spotifyLoop         ] ========================================== LOOP ================================================================
[2024:11:02 12:39:34] DEBUG [spotifyLoop         ] CURRENT TIME (0)= 1730543974
[2024:11:02 12:39:34] DEBUG [spotifyLoop         ] EXPIRE TIME (0)= undefined
[2024:11:02 12:39:34] DEBUG [spotifyLoop         ] REFRESH ACCOUNT TOKEN (0)
[2024:11:02 12:39:34] DEBUG [refreshTokenRequest ] BEGIN
[2024:11:02 12:39:34] DEBUG [refreshTokenRequest ] APIKEY = GbZAC79jYupqrnqJSjbnRsNZR3s5xwEw3y9W126SniPmqLuw9ViOjtARhCnG2tIi
[2024:11:02 12:39:34] DEBUG [refreshTokenRequest ] I = 0
[2024:11:02 12:39:34] DEBUG [refreshTokenRequest ] ID = 1041
[2024:11:02 12:39:34][INFO-][refreshTokenRequest ] >> http://192.168.1.12/plugins/spotify/core/ajax/spotify.ajax.php?api=GbZAC79jYupqrnqJSjbnRxxxxRhCnG2tIi&i=0&id=1041&action=refresh_token
[2024:11:02 12:39:34] DEBUG [refreshTokenRequest ] END
[2024:11:02 12:39:34] DEBUG [refreshTokenResponse] BEGIN
undefined:1
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at refreshTokenResponse (/var/www/html/plugins/spotify/ressources/spotify.js:619:21)
at IncomingMessage.<anonymous> (/var/www/html/plugins/spotify/ressources/spotify.js:673:5)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js v20.17.0

avec cette ligne:

[2024:11:02 12:39:34] DEBUG [refreshTokenResponse] BEGIN
undefined:1
SyntaxError: Unexpected end of JSON input

J’ai également testé en http mais idem :frowning:

J’ai tout refais + tokensize et la c’est OK.
Par contre par défaut pas possible de caster sur un device déjé défini ?

Ce que j’ai remarqué, c’est que parfois l’IP fonctionne parfois le nom.
Dans ce cas salon, a l’IP 192.168.1.10.

Pour que le Device salon s’affiche. Il faut d’abord que je cast sur mon iPhone.

Merci

Il faut que le nom soit identique, probablement « Salon » et non pas « salon » dans votre cas ?

En effet j’avais pas vu mon erreur.
Par contre ce que je ne comprends pas c’est que je n’ai pas mis le device Chambre dans la conf et lui fonctionne sans pb dès le démarrage lorsque je le selectionne.