Point Forecast Api
-
When I send a post request to https://api.windy.com/api/point-forecast/v2, the return value is always 500, but I can use postman software to return the result data normally. Who can tell me how to solve this?


-
@lin-junjie You have to JSON.stringify your data/body.
Like so:
const body = JSON.stringify({ "lat": 49.3201, "lon": 16.43232, "model": "gfs", "parameters": ["wind"], "key": "djsankgfldngdgflkdgfddsa" }) -
@Lin-junjie prove with fetch not ajax
Windy Community | Powered by excellent
NodeBB