Open slowtoaccept opened 3 years ago
from noaa_sdk import NOAA
n = NOAA() res = n.get_forecasts('06405', 'US') for i in res: print(i)
Previous request failed with code 503. Retrying... Previous Response: { "correlationId": "2869a65", "title": "Forecast Grid Invalid", "type": "https://api.weather.gov/problems/ForecastMissingData", "status": 503, "detail": "The forecast grid is missing data for time 2021-04-20T21:00:00-04:00.", "instance": "https://api.weather.gov/requests/2869a65" }
It was originally working for me, up until mid-December 2023, and now fails with the same messaage as you. Is noaa blocking web scraping?
Simple example code:
from noaa_sdk import NOAA
n = NOAA() res = n.get_forecasts('06405', 'US') for i in res: print(i)
The following was repeated 5 times
Previous request failed with code 503. Retrying... Previous Response: { "correlationId": "2869a65", "title": "Forecast Grid Invalid", "type": "https://api.weather.gov/problems/ForecastMissingData", "status": 503, "detail": "The forecast grid is missing data for time 2021-04-20T21:00:00-04:00.", "instance": "https://api.weather.gov/requests/2869a65" }