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.

    OpenWeatherForcast - AggregateError?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    18 Posts 2 Posters 2.5k 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.
    • C Offline
      cricket @sdetweil
      last edited by

      @sdetweil Thanks for all your help. Installed this today - Still stuck at loading - this is the error I got.

      0|MagicMirror  | [2025-05-06 09:08:47.933] [ERROR] [MMM-OpenWeatherForecast] 6-May-25 09:08 ** ERROR ** TypeError: fetch failed
      0|MagicMirror  | TypeError: fetch failed
      0|MagicMirror  |     at node:internal/deps/undici/undici:13502:13
      0|MagicMirror  |     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      

      I renamed the old MMM module prior to installation. I can make direct API calls in a browser using the API key provided. Not sure what to try now. Any help welcomed.

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @cricket
        last edited by

        @cricket hmm… can you shown the startup info
        like this from MM startup

        ### SYSTEM:   manufacturer: System manufacturer; model: System Product Name; virtual: false
        ### OS:       platform: linux; distro: Ubuntu; release: 22.04.5 LTS; arch: x64; kernel: 5.15.0-138-generic
        ### VERSIONS: electron: 35.1.5; used node: 22.14.0; installed node: 22.14.0; npm: 10.9.2; pm2: 5.4.3
        ### OTHER:    timeZone: Europe/London; ELECTRON_ENABLE_GPU: undefined
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          cricket @sdetweil
          last edited by

          @sdetweil Thanks for all your help - here is what I have -

          0|MagicMir | [2025-05-06 10:28:53.242] [INFO]  System information:
          0|MagicMir | ### SYSTEM:   manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 4 Model B Rev 1.5; virtual: false
          0|MagicMir | ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.25+rpt-rpi-v8
          0|MagicMir | ### VERSIONS: electron: 35.2.2; used node: 22.14.0; installed node: 22.14.0; npm: 10.9.2; pm2: 5.4.3
          0|MagicMir | ### OTHER:    timeZone: America/Chicago; ELECTRON_ENABLE_GPU: undefined
          
          
          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @cricket
            last edited by sdetweil

            @cricket @wishmaster270 will have to reply
            (I know he has been busy, so may take some time)

            can you post your module config,
            xxx out the apikey

            and I can try it

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              cricket @sdetweil
              last edited by

              @sdetweil Copy that - I have also tried the API web call on the pi browser - it works fine. I tried a couple of options.

              Are you asking me to post the entire conifg.js?

              Thanks.

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @cricket
                last edited by

                @cricket no, only for this module…

                I can recreate here with my apikey and location and see the working direct url
                did take quite a while…

                we have the fetch timeout set to 30 seconds, so that shouldn’t be it

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                C 1 Reply Last reply Reply Quote 0
                • C Offline
                  cricket @sdetweil
                  last edited by

                  @sdetweil
                  I am going to reinstall the module as well to see if that works. Update: No change - still loading.

                                  {
                                          module: "MMM-OpenWeatherForecast",
                                          position: "top_right",
                                          header: "Forecast",
                                          config: {
                                            apikey: "mykey", //only string here
                                            latitude: 43.030099,            //number works here
                                            longitude: -89.449056          //so does a string
                                  }
                                  },
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @cricket
                    last edited by sdetweil

                    @cricket the ‘Loading’ error means the front end (displaying data) is waiting for the data to arrive from the backend (node_helper.js)

                    almost NO module reports and handles critical failures like this.
                    so we asked for data, and nothing… still wating…

                    I upgraded nodejs, electron and still fails in same place.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    C 2 Replies Last reply Reply Quote 1
                    • C Offline
                      cricket @sdetweil
                      last edited by

                      @sdetweil

                      I follow some of what you have said. Thanks for your help. Hopefully it is something that can be corrected.

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        cricket @sdetweil
                        last edited by

                        @sdetweil said in OpenWeatherForcast - AggregateError?:

                        almost NO module reports and handles critical failures like this.
                        so we asked for data, and nothing… still wating…

                        I upgraded nodejs, electron and still fails in same place.

                        Does this mean you are having the same issue I am?

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @cricket
                          last edited by

                          @cricket yes, I said I could recreate your problem.
                          https://forum.magicmirror.builders/post/126268

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          C 1 Reply Last reply Reply Quote 1
                          • C Offline
                            cricket @sdetweil
                            last edited by

                            @sdetweil Not sure what happened, but it just started working for me… Now on to some configuration. Many thanks for all your help.

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @cricket
                              last edited by

                              @cricket awesome!!

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              • 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