Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnhandledPromiseRejectionWarning (after MMM-Remote-Control module setup) #1285

Closed
hsukup1 opened this Issue May 10, 2018 · 3 comments

Comments

Projects
None yet
4 participants
@hsukup1
Copy link

hsukup1 commented May 10, 2018

Platform: Chromium (latest), RPi3B

Node Version: 9.11.1

MagicMirror Version: v2

Description:
Getting error from MMM-Remote-Control module.

Steps to Reproduce:

  1. Install MMM-Remote-Control:
    cd ~/MagicMirror/modules
    git clone https://github.com/Jopyth/MMM-Remote-Control.git
    cd MMM-Remote-Control
    npm install

  2. Add module to ~/MagicMirror/config/config.js and update MMM-ModuleScheduler config to turn monitor on/off:

                {
                        module: "MMM-ModuleScheduler",
                        config: {
                               notification_schedule: [
                                        {notification: 'REMOTE_ACTION', schedule: '00 23 * * *', payload: {action: 'MONITOROFF'}},
                                        {notification: 'REMOTE_ACTION', schedule: '45 6 * * *', payload: {action: 'MONITORON'}},
                                ],
                        }
                },
                {
                        module: 'MMM-Remote-Control',
                        position: 'bottom_right'
                },
  1. Run as server:
    cd ~/MagicMirror && node serveronly

Expected Results:
smooth sailing

Actual Results:
image

Configuration: see above

@MichMich

This comment has been minimized.

Copy link
Owner

MichMich commented May 11, 2018

Please create an issue in the repository of this third party module. Thanks.

@MichMich MichMich closed this May 11, 2018

@d-Rickyy-b

This comment has been minimized.

Copy link
Contributor

d-Rickyy-b commented Oct 25, 2018

I got a pretty similar error log:

(node:8419) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'hash' of null
(node:8419) [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.
(node:8419) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'hash' of null
(node:8419) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot read property 'hash' of null

...
(node:8419) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 486): TypeError: Cannot read property 'hash' of null
(node:8419) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 487): TypeError: Cannot read property 'hash' of null

I cannot see that the issue is related to a specific module from the log alone. (PS: Could you please add timestamps to the logging? This is really a mess to debug - I can't correlate the events with other information I get because of missing timestamps).

@MichMich could you please help me to identify the source/module where the exception is thrown? Do you need an own issue for this? My guess would be that this happens when the RasPi (connected via WiFi) loses the connection.

Greetings, Rico

@Jopyth

This comment has been minimized.

Copy link
Contributor

Jopyth commented Nov 19, 2018

For further discussion: Jopyth/MMM-Remote-Control#87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.