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.

    Calendar Fetch Error

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 2 Posters 703 Views 2 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.
    • W Offline
      WallysWellies
      last edited by

      My Outlook calendar is no longer working, displaying an error for the last several days. I’m using the default calendar module.

      I think this is some stupid Microsoft issue but perhaps someone has the knowledge to confirm and perhaps even suggest a fix.

      This shows in the log (this is a test calendar I setup - the URL is real):

      [2025-08-24 21:38:11.500] [ERROR] Calendar Error. Could not fetch calendar:  https://outlook.live.com/owa/calendar/00000000-0000-0000-0000-000000000000/8e3c6cdd-2ee7-43e3-b963-6b7e3efa6d3e/cid-5751C32C44CE49E6/calendar.ics Error: Internal Server Error
      at NodeHelper.checkFetchStatus (/home/user/MagicMirror/js/node_helper.js:102:9)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      

      I’ve poked around and found that I cannot wget that URL from my pi as it throws a 302 error and doesn’t properly redirect. However if I add my user agent string from my Windows laptop it does work:

      wget -U 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0' https://outlook.live.com/owa/calendar/00000000-0000-0000-0000-000000000000/8e3c6cdd-2ee7-43e3-b963-6b7e3efa6d3e/cid-5751C32C44CE49E6/calendar.ics
      

      What have Microsoft done now?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @WallysWellies
        last edited by sdetweil

        @WallysWellies in the next release (Oct 1), there is a new field in the top part of the config.js

        userAgent:"......"
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        W 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @WallysWellies
          last edited by

          @WallysWellies they might be rejecting our user agent string

          you could try to put your instead

          edit

          modules/default/calendar/calendarfecher.js

          we have an issue on being able to configure the useragent string

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          W 1 Reply Last reply Reply Quote 0
          • W Offline
            WallysWellies @sdetweil
            last edited by

            @sdetweil Replacing the user agent string resolved the issue immediately - thank you.

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @WallysWellies
              last edited by

              @WallysWellies thanks for the feedback
              I reopened the issue

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @WallysWellies
                last edited by sdetweil

                @WallysWellies in the next release (Oct 1), there is a new field in the top part of the config.js

                userAgent:"......"
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                W 1 Reply Last reply Reply Quote 0
                • W Offline
                  WallysWellies @sdetweil
                  last edited by

                  @sdetweil thanks for the heads up. I’ll make sure to use the new supported method next release.

                  Awesome support as always!

                  1 Reply Last reply Reply Quote 0
                  • S sdetweil has marked this topic as solved
                  • 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