Often the exact same request will go through on retry.
I can testify with this. The exact same request may fail or go through randomly. Out of 5 request we get this error at least 2 times.
Today is the last day we can use DarkSky. It's going to render my app useless for weather, affecting all my current users.
This is the error I get when debugging:
[WeatherService] Encountered an error when fetching weather data subset; location=<+26.07166672,-80.14969635> +/- 0.00m (speed -1.00 mps / course -1.00) @ 3/31/23, 2:02:14 PM Eastern Daylight Time, error=responseFailed(<NSHTTPURLResponse: 0x600001f05ce0> { URL: https://weather-data.apple.com/v3/weather/en/26.072/-80.150?timezone=America/New_York&dataSets=currentWeather,forecastHourly,forecastDaily&hourlyStart=2023-03-31T18:02:14Z&hourlyEnd=2023-04-01T18:02:14Z&country=US } { Status Code: 502, Headers {
"Cache-Control" = (
"max-age=0, no-cache, no-store"
);
Connection = (
"keep-alive"
);
"Content-Length" = (
150
);
"Content-Type" = (
"text/html"
);
Date = (
"Fri, 31 Mar 2023 18:02:15 GMT"
);
Expires = (
"Fri, 31 Mar 2023 18:02:15 GMT"
);
Pragma = (
"no-cache"
);
Server = (
Apple
);
"Strict-Transport-Security" = (
"max-age=31536000; includeSubdomains"
);
"X-Cache" = (
"TCP_MISS from a23-204-105-89.deploy.akamaitechnologies.com (AkamaiGHost/11.0.2.2-47519392) (-)"
);
"X-Content-Type-Options" = (
nosniff
);
"X-Frame-Options" = (
SAMEORIGIN
);
"X-XSS-Protection" = (
"1; mode=block"
);
} }, Optional("<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body>\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>Apple</center>\r\n</body>\r\n</html>\r\n"))