All wind vectors data is null
-
Hi. I have a question regarding Point Forecast API request return values -
POST Request is successfull but wind speed vectors are just 'null' for each altitude
"wind_u-surface": [
null,
null,
"wind_u-1000h": [
null,
null,
null,
and so on for other altitudes. Previously it worked fine, but stopped work starting from the last week
What could be the reason of it? -
Hi @Vsevol0d, could You please send whole body of POST request (except for the key)? I do get values for wind when I send my request.
-
Hi @Filip_K
Sure -
Request:
POST https://api.windy.com/api/point-forecast/v2
Headers: {Content-Type: application/json; charset=utf-8 Content-Length: 198}
Content: {"lat": "45,6248922", "lon": "14,2649134", "model": "gfs", "parameters": ["wind"], "key": "RvnKEo0VvicDBOE3wjgowmGNtHAWEpaO", "levels": ["surface","1000h","950h","925h","900h","850h","800h","700h"]}Response:
Headers:
{StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
X-Powered-By: api4-6b99df476b-68lwg: v5.22.0 api4
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Date: Tue, 10 Sep 2024 08:45:21 GMT
Via: 1.1 google
Alt-Svc: h3=":443"; ma=2592000
Alt-Svc: h3-29=":443"; ma=2592000
Expires: -1
Content-Type: application/json; charset=utf-8
Content-Length: 8162
}}Content:
{
"ts": [
1725872400000,
1725883200000,
...
],
"units": {
"wind_u-surface": "ms-1",
"wind_u-1000h": "ms-1",
"wind_u-950h": "ms-1",
"wind_u-925h": "ms-1",
"wind_u-900h": "ms-1",
"wind_u-850h": "ms-1",
"wind_u-800h": "ms-1",
"wind_u-700h": "ms-1",
"wind_v-surface": "ms-1",
"wind_v-1000h": "ms-1",
"wind_v-950h": "ms-1",
"wind_v-925h": "ms-1",
"wind_v-900h": "ms-1",
"wind_v-850h": "ms-1",
"wind_v-800h": "ms-1",
"wind_v-700h": "ms-1"
},
"wind_u-surface": [
null,
null,
...
],
"wind_u-1000h": [
null,
null,
...
],
"wind_u-950h": [
null,
null,
...
],
"wind_u-925h": [
null,
null,
...
],
"wind_u-900h": [
null,
null,
...
],
"wind_u-850h": [
null,
null,
...
],
"wind_u-800h": [
null,
null,
...
],
"wind_u-700h": [
null,
null,
...
],
"wind_v-surface": [
null,
null,
...
],
"wind_v-1000h": [
null,
null,
...
],
"wind_v-950h": [
null,
null,
...
],
"wind_v-925h": [
null,
null,
...
],
"wind_v-900h": [
null,
null,
...
],
"wind_v-850h": [
null,
null,
...
],
"wind_v-800h": [
null,
null,
...
],
"wind_v-700h": [
null,
null,
...
]
} -
@Vsevol0d
Aha, I see the problem. The coordinates are actually in wrong format, they need to use decimal point, not decimal comma.So
... "lat": "45,6248922", "lon": "14,2649134" ...
doesn't work but... "lat": "45.6248922", "lon": "14.2649134" ...
does.I'm not sure if the API worked with decimal comma before, but it is possible.
-
@Filip_K Thanks! Format fixing helped