Solved request node_modules spotify
-
bonjour,
après la dernière mise à jour de MMM-googleassistant j’ai ce message d’erreur et un black screen après 2 min0|MagicMirror | [09.10.2021 21:03.33.628] [ERROR] 0|MagicMirror | (node:1698) UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property 'request' of 'response' as it is undefined. 0|MagicMirror | at /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/@bugsounet/spotify/index.js:171:19 0|MagicMirror | at processTicksAndRejections (internal/process/task_queues.js:93:5) 0|MagicMirror | (Use `electron --trace-warnings ...` to show where the warning was created) 0|MagicMirror | [09.10.2021 21:03.33.629] [ERROR] (node:1698) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) 0|MagicMirror | [09.10.2021 21:03.33.630] [ERROR] (node:1698) [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.
-
coucou Kelly,
je ne pense pas que soit lier a un black screen (il tourne de maniere protégé)
par contre oui, je suis d’accord avec toi, j’ai oublier une partie du code dans le cas ou … la connexion internet est perdu… la
response
est nul et donc ne peux pas récupéré la valeur derequest
qui est a l’interieur deresponse
wow … c’est compliqué :))))je vais regardé rapidement
Cédric
-
@bugsounet je te remercie j’attends
-
corriger sur npm @bugsounet/spotify@1.0.5
Encore merci pour m’avoir remonté le bug(sounet)