MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

pm2 logs - UnhandledPromiseRejectionWarning



  • 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


  • Module Developer

    @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?



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


  • Project Sponsor

    @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.



  • This post is deleted!


  • /*************** 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


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


Log in to reply