Jopyth/MMM-Remote-Control

"Not initialized" - Everything up to date, no conflicting module

Closed this issue · 1 comments

OS

Raspberry Pi OS Buster

NodeJS Version

16.18.1

MagicMirror Version

2.21.0

Remote Control Version

3.3.2

Did you try using just Remote Control alone with MM?

  • I have and the error still happening

Description

I used to POST a message to show some information using the alert module.

Expected behavior

Message gets shown.

Current behavior

It stopped working and I would appreciated some help in analyzing the cause.

I updated Node and MMM, I excluded every other module with the exception of 'alert' and Remote Control and I still get the error message {"success":false,"status":"error","reason":"unknown","info":"Not initialized, have you opened or refreshed your browser since the last time you started MagicMirror?"}.

The returned data contains the body Not initialized, have you opened or refreshed your browser since the last time you started MagicMirror?, status code 400 and these headers:

{"access-control-allow-origin":"*","x-dns-prefetch-control":"off","x-frame-options":"SAMEORIGIN","strict-transport-security":"max-age=15552000; includeSubDomains","x-download-options":"noopen","x-content-type-options":"nosniff","x-permitted-cross-domain-policies":"none","referrer-policy":"no-referrer","x-xss-protection":"0","content-type":"application/json; charset=utf-8","content-length":"166","etag":"W/\"a6-7TFy9clM9rwQNiht2z4gvOP9Avg\"","date":"Tue, 06 Dec 2022 19:36:42 GMT","connection":"close","x-node-red-request-node":"48225ade"}

Possible solution

No response

Steps to reproduce

Post payload { "message": "message text", "title": "Test", "timer": 15000 } with header Content-Type: application/json; charset=utf-8 to http://myhost:8080/api/module/alert/showalert.

Log

> magicmirror@2.21.0 start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js dev

[06.12.2022 21:07.03.814] [LOG]   Starting MagicMirror: v2.21.0
[06.12.2022 21:07.03.830] [LOG]   Loading config ...
[06.12.2022 21:07.03.844] [LOG]   Loading module helpers ...
[06.12.2022 21:07.04.092] [LOG]   Initializing new module helper ...
[06.12.2022 21:07.04.096] [LOG]   Module helper loaded: MMM-Remote-Control
[06.12.2022 21:07.04.100] [LOG]   No helper found for module: alert.
[06.12.2022 21:07.04.104] [LOG]   All module helpers loaded.
[06.12.2022 21:07.04.364] [LOG]   Starting server on port 8080 ...
[06.12.2022 21:07.04.398] [WARN]  You're using a full whitelist configuration to allow for all IPs
[06.12.2022 21:07.04.412] [LOG]   Server started ...
[06.12.2022 21:07.04.414] [LOG]   Connecting socket for: MMM-Remote-Control
[06.12.2022 21:07.04.416] [LOG]   Starting node helper for: MMM-Remote-Control
[06.12.2022 21:07.04.496] [LOG]   Sockets connected & modules started ...
[06.12.2022 21:07.04.994] [LOG]   Launching application.
[5959:1206/210706.126966:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[6023:1206/210706.349736:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[5968:1206/210706.434220:ERROR:command_buffer_proxy_impl.cc(126)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[5967:1206/210706.450267:ERROR:command_buffer_proxy_impl.cc(126)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[06.12.2022 21:07.46.138] [LOG]   Not initialized, have you opened or refreshed your browser since the last time you started MagicMirror?

config.js

var config = {
        address: ["0.0.0.0"], // Address to listen on, can be:
                              // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                              // - another specific IPv4/6 to listen on a specific interface
                              // - "0.0.0.0", "::" to listen on any interface
                              // Default, when address config is left out or empty, is "localhost"
        port: 8080,
        ipWhitelist: [], // Set [] to allow all IP addresses
                                                               // or add a specific IPv4 of 192.168.1.5 :
                                                               // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                                                               // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                                                               // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

        useHttps: false,                // Support HTTPS or not, default "false" will use HTTP
        httpsPrivateKey: "",    // HTTPS private key path, only require when useHttps is true
        httpsCertificate: "",   // HTTPS Certificate path, only require when useHttps is true
        modules: [


    {
        module: 'MMM-Remote-Control',
        // uncomment the following line to show the URL of the remote control on the mirror
        // , position: 'bottom_left'
        // you can hide this module afterwards from the remote control itself
        config: {
            customCommand: {},  // Optional, See "Using Custom Commands" below
            showModuleApiMenu: true, // Optional, Enable the Module Controls menu
            secureEndpoints: false // Optional, See API/README.md

       }
    },




                {
                        module: "alert"
        },
        ]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}


### Additional info

_No response_

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.