Interprétation Log Node Red avec le "erreur inattendue (502) error"

Bonjour,

je viens de me casser les dents sur une erreur node red très explicite
Cap2ture
En fait j’ai mis un certain temps pour comprendre que c’était la page web qui me mettait ce message pour dire qu’elle n’arrivait plus à communiquer avec Node Red.

Donc j’ai réglé les Logs sur Trace et j’obtiens ceci

7 Sep 17:57:58 - [debug] [cast-to-client:b6689c597f4d02f1] getting message { _msgid: '4fe61dca2df906dd', payload: '1', contentType: 'audio', payload2: 'Clubsandwich', ip: '192.168.1.28', url: 'https://streams.fluxfm.de/clubsandwich/mp3-320/audio/' }
7 Sep 17:57:58 - [debug] [cast-to-client:b6689c597f4d02f1] { url: 'https://streams.fluxfm.de/clubsandwich/mp3-320/audio/', contentType: 'audio', language: 'en', ip: '192.168.1.28', volume: 0.45, topic: 'cast', message: '1', delay: 250, media: { contentId: 'https://streams.fluxfm.de/clubsandwich/mp3-320/audio/', contentType: 'audio' } }
7 Sep 17:57:58 - [debug] [cast-to-client:b6689c597f4d02f1] initialize playing
7 Sep 17:57:58 - [debug] [cast-to-client:b6689c597f4d02f1] connect to client { url: 'https://streams.fluxfm.de/clubsandwich/mp3-320/audio/', contentType: 'audio', language: 'en', ip: '192.168.1.28', volume: 0.45, topic: 'cast', message: '1', delay: 250, media: { contentId: 'https://streams.fluxfm.de/clubsandwich/mp3-320/audio/', contentType: 'audio' }, host: '192.168.1.28' }
7 Sep 17:57:58 - [debug] [cast-to-client:b6689c597f4d02f1] launchDefCallback
7 Sep 17:57:58 - [debug] [cast-to-client:b6689c597f4d02f1] onStatus { volume: { controlType: 'master', level: 0.44999998807907104, muted: false, stepInterval: 0.03125 } }
7 Sep 17:58:00 - [debug] [cast-to-client:b6689c597f4d02f1] onStatus { applications: [ { appId: 'CC1AD845', displayName: 'Default Media Receiver', isIdleScreen: false, launchedFromCloud: false, namespaces: [Array], sessionId: 'ddb86bbf-9073-4c90-b82c-475f82c1238e', statusText: 'Default Media Receiver', transportId: 'ddb86bbf-9073-4c90-b82c-475f82c1238e' } ], volume: { controlType: 'master', level: 0.44999998807907104, muted: false, stepInterval: 0.03125 } }
7 Sep 17:58:00 - [debug] [cast-to-client:b6689c597f4d02f1] checkVolume { url: 'https://streams.fluxfm.de/clubsandwich/mp3-320/audio/', contentType: 'audio', language: 'en', ip: '192.168.1.28', volume: 0.45, topic: 'cast', message: '1', delay: 250, media: { contentId: 'https://streams.fluxfm.de/clubsandwich/mp3-320/audio/', contentType: 'audio' }, host: '192.168.1.28', port: 8009, rejectUnauthorized: false }
7 Sep 17:58:00 - [debug] [cast-to-client:b6689c597f4d02f1] doSetVolume 0.45
7 Sep 17:58:00 - [debug] [cast-to-client:b6689c597f4d02f1] try to set volume { level: 0.45 }
7 Sep 17:58:00 - [debug] [cast-to-client:b6689c597f4d02f1] loading player with media='{ contentId: 'https://streams.fluxfm.de/clubsandwich/mp3-320/audio/', contentType: 'audio', streamType: 'BUFFERED' }' streamType=BUFFERED
7 Sep 17:58:00 - [debug] [cast-to-client:b6689c597f4d02f1] onStatus { applications: [ { appId: 'CC1AD845', displayName: 'Default Media Receiver', isIdleScreen: false, launchedFromCloud: false, namespaces: [Array], sessionId: 'ddb86bbf-9073-4c90-b82c-475f82c1238e', statusText: 'Diffusion: audio - ', transportId: 'ddb86bbf-9073-4c90-b82c-475f82c1238e' } ], volume: { controlType: 'master', level: 0.44999998807907104, muted: false, stepInterval: 0.03125 } }
7 Sep 17:58:01 - [info] [cast-to-client:b6689c597f4d02f1] volume changed to 45
7 Sep 17:58:03 - [red] Uncaught Exception:
7 Sep 17:58:03 - [error] TypeError: node.error is not a function
    at errorHandler (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:52:10)
    at getSpeechUrl (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:192:9)
    at Timeout._onTimeout (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:836:33)
    at listOnTimeout (node:internal/timers:571:11)
    at processTimers (node:internal/timers:512:7)
[17:58:03] INFO: Service Node-RED exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
[17:58:03] INFO: Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service init-nginx: stopping
s6-rc: info: service nodered: stopping
s6-rc: info: service init-nginx successfully stopped
s6-rc: info: service nodered successfully stopped
s6-rc: info: service init-nodered: stopping
s6-rc: info: service init-nodered successfully stopped
s6-rc: info: service init-customizations: stopping
s6-rc: info: service init-customizations successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Mon code consiste à envoyer un msg au noeud cast de node-red-contrib-cast pour lancer une web radio sur une enceinte chromecast.

Donc ma question est: « est ce que vous partagez mon interprétation de la log? »

Erreur qui n’est pas gérée, le errorHandler nous précise que c’est dans node-red-contrib-cast

7 Sep 17:58:03 - [red] Uncaught Exception:
7 Sep 17:58:03 - [error] TypeError: node.error is not a function
    at errorHandler (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:52:10)
    at getSpeechUrl (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:192:9)

Et la Node Red ce coupe

[17:58:03] INFO: Service Node-RED exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping

En fait ce sont ces deux ligne qui nous disent que node red s’arrête ?

[17:58:03] INFO: Service Node-RED exited with code 1 (by signal 0)
[17:58:03] INFO: Service NGINX exited with code 0 (by signal 0)

Edit: En fait dès que j’utilise le noeud cast, l’enceinte se met à jouer le son et node red restart, bon je dois creuser si c’est moi qui ai fait des bétises dans mon code

Il serait bon d’avoir ta configuration @OusmAmouth !
Bob