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

Add better error handling when providing data downloads from THREDDS #301

Conversation

ricardogsilva
Copy link

@ricardogsilva ricardogsilva commented Nov 13, 2024

This PR implements a workaround for the fact that the upstream THREDDS NCSS service returns an error when a request for a NetCDF file that represents 30-year aggregated data includes a temporal range.

The proposed implementation discards the datetime query parameter when the coverage being requested has aggregation_period:30yr as one of its configuration parameters.

In addition to this change, this PR also adds better error handling to the API path operation that performs forecast coverage data download. Previously, any errors in the upstream THREDDS NCSS response were ignored. The proposed implementation forwards the response from THREDDS to the client, thus exposing any problems which may occur.


@ricardogsilva ricardogsilva marked this pull request as draft November 13, 2024 13:21
@ricardogsilva ricardogsilva marked this pull request as ready for review November 13, 2024 15:07
@francbartoli francbartoli merged commit 34dedca into geobeyond:main Nov 13, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

Invalid NetCDF files get generated when downloading tas 30yr anomalies
2 participants