Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    Windy.com Map Broke on the Second Visit or so

    Scheduled Pinned Locked Moved
    Windy API v4
    3
    10
    2.7k
    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.
    • EnergyVueE
      EnergyVue
      last edited by EnergyVue

      Hi

      I implemented Windy.com forecast map API in my Angular Application (Single Page App).
      I noticed today (it was working fine before) that my Windy Map is showing gray screen like below on the second visit or so. If I refresh the browser, the map will show up fine, but when I navigate to other page then come back to the page with the Map, the map doesn't load and stuck there.
      Note, there's no error in the console debug. Thank you

      83be5bfe-9a81-4ed5-ad31-a2e74378bc88-image.png

      KorinaK 1 Reply Last reply Reply Quote 1
      • KorinaK
        Korina @EnergyVue
        last edited by Korina

        @energyvue We have launched a new API. If you are using Windy API for commercial purposes without permission and without paid version, the API will not work for you properly.

        Korina

        EnergyVueE 1 Reply Last reply Reply Quote 0
        • marekdM
          marekd Administrator
          last edited by

          @EnergyVue Can you please send me a link where the API is used? It is hard to fix the bug without possibility to replicate it. Thanks!

          1 Reply Last reply Reply Quote 0
          • EnergyVueE
            EnergyVue @Korina
            last edited by

            Hi @korina, we use the paid version. However, today I noticed the issue disappeared, and the satellite option is also gone, so I assume the API was reverted ?

            KorinaK 1 Reply Last reply Reply Quote 0
            • KorinaK
              Korina @EnergyVue
              last edited by

              @energyvue Hello, yes, we have reverted to the old version temporarily. However we would still need the link, where the api is used.

              Korina

              EnergyVueE 1 Reply Last reply Reply Quote 0
              • EnergyVueE
                EnergyVue @Korina
                last edited by

                Hi @korina, the site/url is currently not available externally for some times... I'll provide you the detail once it comes back.

                KorinaK 1 Reply Last reply Reply Quote 0
                • KorinaK
                  Korina @EnergyVue
                  last edited by

                  @energyvue Hello, please try our new BETA version of API and let us know if you experience any issues - https://community.windy.com/topic/21080/api-beta-test

                  Korina

                  1 Reply Last reply Reply Quote 0
                  • EnergyVueE
                    EnergyVue
                    last edited by

                    Hi Korina,
                    I got below error when using the beta version you provided.
                    The I visited the page (/map) containing the map first time, it loads perfectly fine..
                    But when I navigate it to other page (such as: /doc) and come back to the map page, it won't load the map and noticed the error.
                    Please note that I implement it in Single Page Application using Angular, in which I need to reinitialize the Windy Map everytime I load the /map route (called on ngInit).

                    libBoot.js?beta=36:1  !!! Repeatedly calling "windyInit" of an already initialized API is an unsupported functionality and will be removed in future versions!
                    assetgroups:1          Failed to load resource: the server responded with a status of 400 (Bad Request)
                    core.js:6479 ERROR TypeError: s is not a function
                        at i (libBoot.js?beta=36:1:255045)
                        at a.onload [as __zone_symbol__ON_PROPERTYload] (libBoot.js?beta=36:1:254710)
                        at HTMLScriptElement.wrapFn (zone.js:763:1)
                        at ZoneDelegate.invokeTask (zone.js:406:1)
                        at Object.onInvokeTask (core.js:28659:1)
                        at ZoneDelegate.invokeTask (zone.js:405:1)
                        at Zone.runTask (zone.js:178:1)
                        at ZoneTask.invokeTask [as invoke] (zone.js:487:1)
                        at invokeTask (zone.js:1600:1)
                        at HTMLScriptElement.globalZoneAwareCallback (zone.js:1626:1)
                    defaultErrorLogger @ core.js:6479
                    handleError @ core.js:6527
                    next @ core.js:29283
                    (anonymous) @ Subscriber.js:122
                    Subscriber._next @ Subscriber.js:62
                    Subscriber.next @ Subscriber.js:33
                    Subject.next @ Subject.js:35
                    emit @ core.js:25935
                    (anonymous) @ core.js:28698
                    invoke @ zone.js:372
                    run @ zone.js:134
                    runOutsideAngular @ core.js:28571
                    onHandleError @ core.js:28698
                    handleError @ zone.js:376
                    runTask @ zone.js:181
                    invokeTask @ zone.js:487
                    invokeTask @ zone.js:1600
                    globalZoneAwareCallback @ zone.js:1626
                    core.js:6479 ERROR TypeError: (0 , window.W.require) is not a function
                        at w (libBoot.js?beta=36:1:195908)
                        at timer (zone.js:2561:1)
                        at ZoneDelegate.invokeTask (zone.js:406:1)
                        at Object.onInvokeTask (core.js:28659:1)
                        at ZoneDelegate.invokeTask (zone.js:405:1)
                        at Zone.runTask (zone.js:178:1)
                        at invokeTask (zone.js:487:1)
                        at ZoneTask.invoke (zone.js:476:1)
                        at data.args. (zone.js:2541:1)
                    
                    EnergyVueE 1 Reply Last reply Reply Quote 0
                    • EnergyVueE
                      EnergyVue @EnergyVue
                      last edited by

                      @Korina FYI

                      marekdM 1 Reply Last reply Reply Quote 0
                      • marekdM
                        marekd Administrator @EnergyVue
                        last edited by marekd

                        @energyvue Please, continue here: https://community.windy.com/topic/21080/api-beta-test

                        I will check the window.W.require part, thanks for the report!

                        1 Reply Last reply Reply Quote 1
                        • marekdM marekd locked this topic on
                        • First post
                          Last post
                        Windy Community  |  Powered by excellent NodeBB
                        Terms of Use     Privacy Policy     Windy.com