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

    500 Error

    Windy API v4
    4
    4
    923
    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.
    • L
      levelise
      last edited by

      Hi, I hope you could help. I'm evaluating Windy as an alternative to DarkSky now as API access will be deprecated and with the trial account, I'm always getting 500s using the example depicted https://api.windy.com/point-forecast/docs with my API_KEY. Is this expected because I'm with the trial one?

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

        No, trial just returns data from random coordinates, but it should work. I have just tested it and it works for my trial key. Can you provide me with more details? Any body in the error? Your request body (please do not publish yout API key)?

        Waqas Saleem 2W 1 Reply Last reply Reply Quote 0
        • Waqas Saleem 2W
          Waqas Saleem 2 @marekd
          last edited by

          @marekd , Here is my code

          var data = {
          "lat": 49.809,
          "lon": 16.787,
          "model": "gfs",
          "parameters": ["wind", "dewpoint", "rh", "pressure"],
          "levels": ["surface", "800h", "300h"],
          "key": "API KEY"
          };
          $.ajax({
          method: "POST",
          contentType: "application/json",
          url: "https://api.windy.com/api/point-forecast/v2",
          dataType: 'json',
          data: data
          })
          .done(function(msg) {
          // console.log(msg);
          });

          It returns
          We are sorry, but something broke.

          KorinaK 1 Reply Last reply Reply Quote 0
          • KorinaK
            Korina @Waqas Saleem 2
            last edited by

            @Waqas-Saleem-2 Are you using Point or Map API?

            Korina

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
            NodeBB & contributors, OSM & contributors, HERE maps
            Terms of Use     Privacy Policy