MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    pm2 logs - UnhandledPromiseRejectionWarning

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 3 Posters 2.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O Offline
      ooskay
      last edited by

      Hi,
      using v.2.4.1
      in the pm2 logs i see below error message with each loading. Any suggestion?

      1|mm | (node:2597) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property ‘refs’ of undefined
      1|mm | (node:2597) [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.
      1|mm | (node:2597) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property ‘refs’ of undefined
      1|mm | (node:2597) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot read property ‘refs’ of undefined

      SnilleS 1 Reply Last reply Reply Quote 0
      • SnilleS Offline
        Snille Module Developer @ooskay
        last edited by

        @ooskay Hi! I get this error to. What modules do you run in your mirror? I think it may be one of my modules causing the problem.

        This is my list:
        calendar_monthly
        mm-hide-all
        MMM-CalendarExt
        MMM-Chart
        MMM-cryptocurrency
        MMM-Globe
        MMM-iFrameReload
        MMM-JSONStatusChecker
        MMM-Memo
        MMM-Modulebar
        MMM-ModuleScheduler
        MMM-MotionEye
        MMM-MyCalendar
        MMM-MyCommute
        MMM-newsfeedtouch
        MMM-plex-recently-added
        MMM-Profilepicture
        MMM-ProfileSwitcher
        MMM-Remote-Control
        MMM-Sonos
        mmm-suncalc
        MMM-TextClock
        MMM-Tools
        MMM-TouchNavigation
        MMM-WunderGround

        What do you have?

        If you cant find it, make it and share it!
        Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

        1 Reply Last reply Reply Quote 0
        • O Offline
          ooskay
          last edited by

          hi,
          try disable remote control to see result. i’m away from my setup.

          bheplerB 1 Reply Last reply Reply Quote 0
          • bheplerB Offline
            bhepler Module Developer @ooskay
            last edited by bhepler

            @ooskay - Please post your config.js file here and we’ll take a look at it. When you do, be sure to use the forum markdown features to help us read your file and be sure to remove any API keys from your file to keep them private. Here is a link explaining the markdown features.

            1 Reply Last reply Reply Quote 1
            • O Offline
              ooskay
              last edited by ooskay

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • O Offline
                ooskay
                last edited by

                /*************** AUTO GENERATED BY REMOTE CONTROL MODULE ***************/
                
                var config = 
                {
                	address: "0.0.0.0",
                	electronOptions: {
                		
                	},
                	ipWhitelist: [
                		"127.0.0.1",
                		"0.0.0.0",
                		"::1",
                		"192.168.1.0/24"
                	],
                	language: "tr",
                	modules: [
                		{
                			module: "alert",
                			config: {
                				
                			}
                		},
                		{
                			module: "MMM-Remote-Control",
                			config: {
                				
                			}
                		},
                /*
                		{
                			module: "updatenotification",
                			position: "top_bar",
                			config: {
                				
                			}
                		},
                		{
                			module: "MMM-EARTH",
                			header: "",
                			position: "upper_third",
                			config: {
                			
                				rotateInterval: 15000,
                				MonthsArray: {
                					Jan: "01",
                					Feb: "02",
                					Mar: "03",
                					Apr: "04",
                					May: "05",
                					Jun: "06",
                					Jul: "07",
                					Aug: "08",
                					Sep: "09",
                					Oct: "10",
                					Nov: "11",
                					Dec: "12"
                				}
                			},
                		},
                
                		{
                			module: "clock",
                			position: "top_left",
                			config: {
                				
                			}
                		},
                		{
                			module: "calendar",
                			header: "Resmi Tatiller",
                			position: "top_left",
                			config: {
                				calendars: [
                					{
                						symbol: "calendar-check-o ",
                						url: "http://88.248.2.178/onur/calendar.php"
                					}
                				],
                				titleReplace: {
                					"De verjaardag van ": "",
                					"'s birthday": ""
                				},
                				excludedEvents: [
                					
                				]
                			}
                		},
                		{
                			module: "compliments",
                			position: "lower_third",
                			config: {
                				compliments: {
                					anytime: [
                						"Merhaba!",
                						"Bugün Harika Gözüküyorsunuz :) "
                					],
                					morning: [
                						"Günaydın!",
                						"İyi bir gün geçirmenizi dilerim!",
                						"Güzel bir gün geçirmeniz dileğiyle!"
                					],
                					afternoon: [
                						"Merhaba",
                						"Gününüz nasıl geçiyor?",
                						"Gününüz umarım iyi geçiyordur!"
                					],
                					evening: [
                						"İyi akşamlar!",
                						"Umarım gününüz iyi geçmiştir!",
                						"İyi geceler!"
                					]
                				}
                			}
                		},
                		{
                			module: "MMM-Cursor",
                			config: {
                				
                			}
                		},
                		{
                			module: "currentweather",
                			position: "top_right",
                			config: {
                				location: "Antalya",
                				locationID: "323777",
                				appid: "d3a9feef45f79bd25729df85b125194d",
                				iconTable: {
                					"01d": "wi-day-sunny",
                					"02d": "wi-day-cloudy",
                					"03d": "wi-cloudy",
                					"04d": "wi-cloudy-windy",
                					"09d": "wi-showers",
                					"10d": "wi-rain",
                					"11d": "wi-thunderstorm",
                					"13d": "wi-snow",
                					"50d": "wi-fog",
                					"01n": "wi-night-clear",
                					"02n": "wi-night-cloudy",
                					"03n": "wi-night-cloudy",
                					"04n": "wi-night-cloudy",
                					"09n": "wi-night-showers",
                					"10n": "wi-night-rain",
                					"11n": "wi-night-thunderstorm",
                					"13n": "wi-night-snow",
                					"50n": "wi-night-alt-cloudy-windy"
                				}
                			}
                		},
                	*/	
                		{
                			module: "MMM-JsonTable",
                			position: "botto
                1 Reply Last reply Reply Quote 0
                • O Offline
                  ooskay
                  last edited by

                  Problem was in MMM remote control module. Error message disappeared when i disabled it.

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy