MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM_MotionEye Error because its MIME type ('text/html') is not executable

    Scheduled Pinned Locked Moved Utilities
    6 Posts 2 Posters 1.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dssdss
      last edited by

      I get the following error message when starting MM2

      “Refused to execute script from ‘http://localhost:8080/modules/MMM_MotionEye//MMM_MotionEye.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.”, source: http://localhost:8080/ (0)

      All other modules start Ok

      Running On Raspberry PI2, Raspbian GNU/Linux 9 (stretch)

      Any idea how to correct this?

      bheplerB 1 Reply Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer @dssdss
        last edited by bhepler

        @dssdss - Please post your relevant portion of the config.js. Right now, it looks like you have an extra slash in your path to your module. (the “MMM_MotionEye//MMM_MotionEye.js” part of the error). At a guess, I would say that your configuration file says something like module: "MMM_MotionEye/", but I would want to look at it to be sure.

        Other questions: Has this module worked before for you? Did you see any errors during install?

        1 Reply Last reply Reply Quote 0
        • D Offline
          dssdss
          last edited by

          1st time I have installed the module.
          I have deleted and reconfigured it also 2 times with the same result.
          I also tried using Firefox-esr instead of Chromium and get the same error
          This is the 1st time I am using MagicMirror2. I cloned the repository last week and default Modules work.
          I also am using module MMM-Sort and it works ok
          I also tried a couple of other modules and I got the same error.
          From the research I have done most of it points to the webserver config but that is beyond me. Do you know the location of the webserver config file is and I can try testing that with some of the info I found in my searches.

          {
          module: ‘MMM-MotionEye’,
          position: ‘bottom_right’,
          config: {
          url: “http://192.168.254.109:8081”,
          forcedRefreshInterval: 60000,
          width: 400px,
          debug: false
          }
          },

          thx

          1 Reply Last reply Reply Quote 0
          • D Offline
            dssdss
            last edited by

            Thx for your help, I fixed. It was my bad typing causing the error.
            With all the changes i was making to get it to work i typed “_” instead of “-”

            Thx for your help

            1 Reply Last reply Reply Quote 0
            • D Offline
              dssdss
              last edited by

              See i still can’t type.

              it should read “Thx for your help, I fixed it” and not read “Thx for your help, I fixed”

              1 Reply Last reply Reply Quote 1
              • bheplerB Offline
                bhepler Module Developer
                last edited by

                I’m glad you got it resolved. In the future, please post requests for help in the troubleshooting section of the forum. This area is for showing off new modules.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy