500 Error
-
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?
-
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)?
-
@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. -
@Waqas-Saleem-2 Are you using Point or Map API?