Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to next source option if there is a connection issue #246

Open
williamhobbs opened this issue Dec 8, 2023 · 1 comment
Open

Go to next source option if there is a connection issue #246

williamhobbs opened this issue Dec 8, 2023 · 1 comment

Comments

@williamhobbs
Copy link
Contributor

williamhobbs commented Dec 8, 2023

Herbie works great on my home network. The firewall on my office/corporate network, however, often causes issues with certificates that result in an SSLError. For other projects (e.g., getting data from the NREL NSRDB), I can usually get around this by using a local copy of a certificate. I have not been able to make that work with Herbie and AWS.

So, I ended up stuck with errors like:

SSLError: HTTPSConnectionPool(host='noaa-hrrr-bdp-pds.s3.amazonaws.com', port=443): Max retries exceeded with url: /hrrr.20210701/conus/hrrr.t12z.wrfsfcf06.grib2 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000)'))

I just had the idea to test Herbie with priority='azure' and it works just fine ('google' works as well).

Would it make sense for Herbie to automatically cycle through the other source options if it runs into this type of error?

@blaylockbk
Copy link
Owner

This would be a good feature to add. Just need to know how to check for this error before moving on.

In the mean time, I believe you can change the source priority in the Herbie config file ~/.config/herbie/config.toml

  [default]
  model = "hrrr"
  fxx = 0
  save_dir = "~/data"
  overwrite = false
  verbose = true
+ priority = ['azure', 'google', 'aws', 'nomads']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants