502 Response from Point Forecast API
-
Sorry if this isn't the correct place for troubleshooting like this, but I'm not sure where else to go at this point. I'm consistently getting a 502 error back for any requests to the Point Forecast API. I've tried to whitelist my IP, I've tried disabling restricted domains for my API key all together, I've played around with the headers and request body, I've tried using a straight curl request as well as Postman. Nothing seems to be working.
My current setup is a Postman POST request to "https://api.windy.com/api/point-forecast/v2" with the "Content-Type" header set to "application/json" and a payload body set to the exact example request in the documentation: (though I swap out my API key)
{
"lat": 49.809,
"lon": 16.787,
"model": "gfs",
"parameters": ["wind", "dewpoint", "rh", "pressure"],
"levels": ["surface", "800h", "300h"],
"key": "abcd123"
}It's such a simple REST request, I don't know what could be going wrong. I wish the response was giving me more information, but all I get is a 502 with the message "The server encountered a temporary error and could not complete your request. Please try again in 30 seconds" after a 30 second timeout. Perhaps this is a limitation of my free account? Any help would be greatly appreciated - thanks
-
@maxmclau-us It seems you are blocked by Google's load balancer probably. What is your country?
-
@marekd said in 502 Response from Point Forecast API:
@maxmclau-us It seems you are blocked by Google's load balancer probably. What is your country?
Strange, I'm in the US - Colorado. I also tried it on my home network with a different computer, but had the same result.
-
Seems pretty straightforward. Anything stick out that I may be missing?
-
@maxmclau-us Strange... it works for me, even with your key, same request. It seems we have some infrastructure problem. Sorry about that, we will fix it asap.
-
@maxmclau-us It should be fixed now. Thank you for your report!
-
Hi, I'm facing out with a similar issue.
When I perform a POST request to "https://api.windy.com/api/point-forecast/v2" through POSTMAN
with this payload
{
"lat": 42,
"lon": 12,
"model": "gfs",
"parameters": ["wind", "dewpoint", "rh", "pressure"],
"key": "MyApiKey"
}
I get a correct response as can be seen in the pic below
but if i try to perform the same POST request through a JAVA application of mine I get the mentioned HTTP 502 error message
Any help would be appreciated, thanks!
-
@edopardo I can see in our logs that our backend refused your request because of invalid body... I will release a new API version with some error messages in response. 502 in your case is just unhandled exception from our side...
-
New version is out. Error messages should be more helpful now.