Seems pretty straightforward. Anything stick out that I may be missing?
Latest posts made by maxmclau-us
-
RE: 502 Response from Point Forecast API
-
RE: 502 Response from Point Forecast API
@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.
-
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