Not able to access API ...
-
Hello, unfortunately I am not able to use the Windy API. An Error 404 is returning every time.
I read the documentation but can't find my solution...
This is my current implementation :
async componentDidMount() {
const body = {
lat: 49.809,
lon: 16.787,
model: "gfs",
parameters: "wind",
levels: "surface",
key: "",
};
const response = await axios.post(
"https://api.windy.com/api/point-forecast/v2",
{ body }
);Thank you in advance for your help !!
-
Hi @Florian-Ruf-Rodot, can you change parameters and levels to fields like this:
const body = { lat: 49.809, lon: 16.787, model: "gfs", parameters: ["wind"], levels: ["surface"], key: "", };
-
@Ondřej-Šutera Thank you for answering !
I have done it but still receive an error...
-
@Florian-Ruf-Rodot We tested our functionality, and it standardly works on our end. Please fix the body element as well. It should be without those curly braces.
According to your API key, did you share yours or there is a typo or change, so you keep yours for yourself (as you should)? I am asking because we checked that and it is not active.
-
@Ondřej-Šutera No I did not share it...
Removed the curly braces and it still does not work. Tried with Meteomatics and other APIs and my implementation is working...
-
@Florian-Ruf-Rodot can you share detailed info at support@windy.com, please?