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

Make sure xarray times out when request takes too long #99

Open
huaracheguarache opened this issue Apr 12, 2023 · 0 comments
Open

Make sure xarray times out when request takes too long #99

huaracheguarache opened this issue Apr 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@huaracheguarache
Copy link
Collaborator

Today I experienced that seaice.metsis-api.met.no didn't load. Local testing revealed that this was due to an issue with the thredds server as the following command wasn't able to return a dataset:

xr.open_dataset('https://thredds.met.no/thredds/dodsC/metusers/thomasl/v2p1/beau/osisaf_beau_sie_daily.nc')

In order to deal with this sort of failure we need a way to specify how long xarray or the backend netCDF4 tries to fetch the file from the server before it times out. It doesn't look like this functionality is provided by xarray or the backend netCDF4-python. We need to look for alternative ways to deal with this.

@huaracheguarache huaracheguarache added the bug Something isn't working label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant