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
Closed

Comments

@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
Copy link
Collaborator

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

@d-Rickyy-b
Copy link
Contributor

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
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants