Read the statement by Michael Teeuw here.
UnhandledPromiseRejectionWarning on launch
-
Hi,
I’m actually configure my first MM.
Since yesterday, and i don’t know why, i’ve a message on launch the MMpi@MagicMirror:~/MagicMirror $ npm run start > magicmirror@2.17.1 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [29.11.2021 13:35.32.237] [LOG] Starting MagicMirror: v2.17.1 [29.11.2021 13:35.32.250] [LOG] Loading config ... [29.11.2021 13:35.32.263] [LOG] Loading module helpers ... [29.11.2021 13:35.32.267] [LOG] No helper found for module: alert. [29.11.2021 13:35.32.301] [LOG] Initializing new module helper ... [29.11.2021 13:35.32.303] [LOG] Module helper loaded: updatenotification [29.11.2021 13:35.32.306] [LOG] No helper found for module: clock. [29.11.2021 13:35.32.622] [LOG] Initializing new module helper ... [29.11.2021 13:35.32.624] [LOG] Module helper loaded: calendar [29.11.2021 13:35.32.626] [LOG] No helper found for module: weather. [29.11.2021 13:35.32.629] [LOG] No helper found for module: compliments. [29.11.2021 13:35.32.631] [LOG] No helper found for module: MMM-Traffic. [29.11.2021 13:35.32.673] [LOG] Initializing new module helper ... [29.11.2021 13:35.32.675] [LOG] Module helper loaded: newsfeed [29.11.2021 13:35.32.679] [LOG] Initializing new module helper ... [29.11.2021 13:35.32.681] [LOG] Module helper loaded: MMM-Jeedom [29.11.2021 13:35.32.683] [LOG] All module helpers loaded. [29.11.2021 13:35.32.846] [LOG] Starting server on port 8080 ... [29.11.2021 13:35.32.872] [LOG] Server started ... [29.11.2021 13:35.32.875] [LOG] Connecting socket for: updatenotification [29.11.2021 13:35.32.878] [LOG] Connecting socket for: calendar [29.11.2021 13:35.32.880] [LOG] Starting node helper for: calendar [29.11.2021 13:35.32.881] [LOG] Connecting socket for: newsfeed [29.11.2021 13:35.32.883] [LOG] Starting node helper for: newsfeed [29.11.2021 13:35.32.885] [LOG] Connecting socket for: MMM-Jeedom [29.11.2021 13:35.32.886] [LOG] Sockets connected & modules started ... [29.11.2021 13:35.33.271] [LOG] Launching application. [29.11.2021 13:35.37.108] [LOG] Create new calendarfetcher for url: http://p28-caldav.icloud.com/published/2/XXX - Interval: 300000 [29.11.2021 13:35.37.170] [LOG] Create new calendarfetcher for url: http://p28-caldav.icloud.com/published/2/XXX - Interval: 300000 [29.11.2021 13:35.37.420] [LOG] Create new newsfetcher for url: https://www.ladepeche.fr/rss.xml - Interval: 300000 [29.11.2021 13:35.37.438] [INFO] Checking git for module: default [29.11.2021 13:35.37.481] [INFO] Checking git for module: MMM-Traffic [29.11.2021 13:35.37.504] [INFO] Checking git for module: MMM-Jeedom [29.11.2021 13:35.38.791] [INFO] Calendar-Fetcher: Broadcasting 10 events. [29.11.2021 13:35.38.845] [INFO] Newsfeed-Fetcher: Broadcasting 100 items. [29.11.2021 13:35.43.285] [INFO] Calendar-Fetcher: Broadcasting 10 events. [29.11.2021 13:35.44.412] [ERROR] (node:3953) UnhandledPromiseRejectionWarning: Error: Command failed: cd /home/pi/MagicMirror/ && git fetch --dry-run error: droits insuffisants pour ajouter un objet à la base de données .git/objects du dépôt fatal: failed to write object fatal: échec de unpack-objects at ChildProcess.exithandler (child_process.js:317:12) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1048:16) at Socket.<anonymous> (internal/child_process.js:439:11) at Socket.emit (events.js:315:20) at Pipe.<anonymous> (net.js:673:12) (Use `electron --trace-warnings ...` to show where the warning was created) [29.11.2021 13:35.44.416] [ERROR] (node:3953) 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: 1) [29.11.2021 13:35.44.418] [ERROR] (node:3953) [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. ^C/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINTThe MM works perfectly, but i don’t know why i’ve this message.
Could you help me ?Thank you :) !
-
Solved, please see issue on github.
My fault :) -
@selyjohns I don’t know why either.
this is likely the updatenotification module
edit the config.js and add
disabled: true,
after the line
module: “updatenotification”
make sure there is a comma on the end of the module line{ module:"updatenotification", disabled: true }, -
@sdetweil
Hi sam,Thank you for this quickly response.
I confirm, move this module to disabled and i don’t have UnhandledPromiseRejectionWarning anymore…But i think this is not a good solution ?
-
@selyjohns but we confirmed it is that module… I would open an issue in the github repo for MagicMirror
-
@sdetweil I think it’s an sudoers ;)
-
Hi,
Issue posted on github :)
https://github.com/MichMich/MagicMirror/issues/2717I’ll keep you informed.
Nice day. -
Solved, please see issue on github.
My fault :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login