Solved Unhandled Promise Rejection
-
pi@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.16.0 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[04.09.2021 13:09.33.398] [LOG] Starting MagicMirror: v2.16.0
[04.09.2021 13:09.33.403] [LOG] Loading config …
[04.09.2021 13:09.33.410] [LOG] Loading module helpers …
[04.09.2021 13:09.33.412] [LOG] No helper found for module: clock.
[04.09.2021 13:09.33.419] [LOG] Initializing new module helper …
[04.09.2021 13:09.33.420] [LOG] Module helper loaded: currentweather
[04.09.2021 13:09.33.424] [LOG] Initializing new module helper …
[04.09.2021 13:09.33.425] [LOG] Module helper loaded: weatherforecast
[04.09.2021 13:09.33.430] [LOG] Initializing new module helper …
[04.09.2021 13:09.33.437] [LOG] Module helper loaded: MMM-Detector
[04.09.2021 13:09.35.670] [LOG] Initializing new module helper …
[04.09.2021 13:09.35.671] [LOG] Module helper loaded: MMM-GoogleAssistant
[04.09.2021 13:09.35.671] [LOG] All module helpers loaded.
[04.09.2021 13:09.35.766] [LOG] Starting server on port 8080 …
[04.09.2021 13:09.35.777] [LOG] Server started …
[04.09.2021 13:09.35.779] [LOG] Connecting socket for: currentweather
[04.09.2021 13:09.35.780] [WARN] The module ‘currentweather’ is deprecated in favor of the ‘weather’-module, please refer to the documentation for a migration path
[04.09.2021 13:09.35.781] [LOG] Connecting socket for: weatherforecast
[04.09.2021 13:09.35.782] [WARN] The module ‘weatherforecast’ is deprecated in favor of the ‘weather’-module, please refer to the documentation for a migration path
[04.09.2021 13:09.35.783] [LOG] Connecting socket for: MMM-Detector
[04.09.2021 13:09.35.784] [LOG] [DETECTOR] MMM-Detector Version: 1.0.1 rev: 210615-1
[04.09.2021 13:09.35.785] [LOG] Connecting socket for: MMM-GoogleAssistant
[04.09.2021 13:09.35.786] [LOG] [GA] Read config.js and check ConfigDeepMerge…
[04.09.2021 13:09.35.787] [LOG] [GA] Perfect ConfigDeepMerge activated!
[04.09.2021 13:09.35.788] [LOG] Sockets connected & modules started …
[04.09.2021 13:09.36.096] [LOG] Launching application.
[04.09.2021 13:09.36.264] [ERROR] (node:30474) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information
[04.09.2021 13:09.39.473] [LOG] [DETECTOR] All needed @bugsounet library loaded !
[04.09.2021 13:09.39.478] [LOG] [NPM] Initialized v0.9.95
[04.09.2021 13:09.39.637] [LOG] [DETECTOR] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
[04.09.2021 13:09.39.672] [LOG] [DETECTOR] Porcupine is initialized with 2 Models: ok google,hey google
[04.09.2021 13:09.39.682] [LOG] [DETECTOR] Snowboy is initialized with 2 Models: jarvis,alexa
[04.09.2021 13:09.39.944] [LOG] [DETECTOR] Starts listening. 4 Models
[04.09.2021 13:09.40.176] [LOG] [GA] MMM-GoogleAssistant Version: 3.0.5 rev: 210730-1
[04.09.2021 13:09.40.180] [LOG] [GA] YouTube Search Function initilized.
[04.09.2021 13:09.41.883] [LOG] [GA] All needed @bugsounet library loaded !
[04.09.2021 13:09.41.884] [LOG] [GA:EXT] Extented Display Server Started
[04.09.2021 13:09.41.886] [LOG] [CAST] Cast v1.1.2 Initialized…
[04.09.2021 13:09.41.901] [LOG] [GA:EXT] Extented Display is initialized.
[04.09.2021 13:09.41.905] [LOG] [GA] RECIPE_LOADED: with-BackgroundStatus.js
[04.09.2021 13:09.41.909] [LOG] [NPM] Initialized v0.9.95
[04.09.2021 13:09.42.307] [LOG] [GA] Google Assistant is initialized.
[04.09.2021 13:09.44.242] [LOG] [DETECTOR] Stops listening.
[04.09.2021 13:09.44.517] [ERROR] (node:30474) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
at createError (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/axios/lib/core/createError.js:16:15)
at settle (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[04.09.2021 13:09.44.521] [ERROR] (node:30474) 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)
[04.09.2021 13:09.44.527] [ERROR] (node:30474) [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.
[04.09.2021 13:09.55.032] [LOG] [DETECTOR] Starts listening. 4 Models
[04.09.2021 13:10.06.075] [LOG] Shutting down server…
[04.09.2021 13:10.06.077] [LOG] Stopping module helper: currentweather
[04.09.2021 13:10.06.078] [LOG] Stopping module helper: weatherforecast
[04.09.2021 13:10.06.080] [LOG] Stopping module helper: MMM-Detector
[04.09.2021 13:10.06.080] [LOG] Stopping module helper: MMM-GoogleAssistant -
can you give us your node version ==> check all the prerequiste versions ( http://wiki.bugsounet.fr/en/MMM-GoogleAssistant/Installation)
have you make re rebuild -
@pitchx
Node v14.17.5
npm v6.14.14
RPI4 -
credentials are not setup correctly
can you retry Setup ?
-
bugsounet