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

Credentials being blocked?



  • So I have many great modules on my Mirror that are working, but there are some that just sit in the loading state. I’ve followed each installation to a T, but nothing seems to be going through. I took a glance at the logs and it looks like there is a web security things not allowing those modules to fetch the data. I read somewhere that Electron has a web preference for security that needed to turned off? Is this a thing? If so, any tips?

    In any case not sure why none of these are updating.



  • @Fr8Trayne tell me more, show some errors… module name, (the url being used … u can mangle the data when posting here, just keep the https://… web server name of the url



  • This is what I’m getting

    Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
          Policy set or a policy with "unsafe-eval" enabled. This exposes users of
          this app to unnecessary security risks.
     
    For more information and help, consult
    https://electronjs.org/docs/tutorial/security.
     This warning will not show up
    once the app is packaged.
    

    and this from the logs.

    roboto.css:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    main.css:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    socket.io.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    config.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    defaults.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    nunjucks.min.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    defaultmodules.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    translations.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    module.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    vendor.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    logger.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    class.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    translator.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    loader.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    socketclient.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    main.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
    

    Can you tell from this information? If not I can throw my whole config in and have you take a look and yes I am a newb at this. I’ve learned a lot but this part is a bit over my head at the moment. Google was not my friend as I couldn’t understand what to do with the information given. It seems like the only modules that aren’t working are those that require credentials like the MMM-Fitbit2 and MMM-Airtable



  • @Fr8Trayne can u tell us more…

    what is the address: and port : set to ,
    and also the ipWhitelist: in config.js

    is the UI on the same machine as the server (just npm start)



  • 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, is "localhost"
    	port: 8080,
    	//ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.0.42", "::ffff:192.168.0.50"], // Set [] to allow all IP addresses
    	ipWhitelist:[],
    	                                                       // 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"],
    

    and yes the UI is on the same machine.


Log in to reply