Let the Copernicus client say why a download failed - #18
Merged
Conversation
Downloads ran the client at --log-level QUIET, which suppresses its explanation along with its chatter. A date past the end of a reanalysis then exits non-zero with no output at all, so the error reported "Client output:" followed by nothing - a failure with the cause removed from it. The client says this at ERROR level, and now does: Some of your subset selection [2026-07-15, 2026-07-15] for the time dimension exceed the dataset coordinates [1993-01-01, 2026-06-23] Normal runs stay quiet, since ERROR suppresses the INFO lines that made QUIET attractive in the first place. Out-of-range dates also now get an explanation rather than only a report. It is the common cause, it will fail on every retry, and the remedy is not obvious from a date range: the reanalysis runs months behind the present, the forecast covers dates near today, and dates more than about ten days ahead are in no product at all. Found from a real 52-day fetch where 11 days failed silently, all of them past the reanalysis cutoff. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The symptom
A 52-day fetch failed on 11 days with an error that had the cause removed from it:
Client output:followed by nothing.Two causes, one mine
The dates were outside the dataset.
cmems_mod_glo_phy_my_0.083deg_P1D-mcovers 1993-01-01 → 2026-06-23. Every failing date was past that: a reanalysis runs months behind the present.The reason was suppressed. Downloads ran at
--log-level QUIET, which silences the client's explanation along with its chatter. The client says this atERROR, and now does:Normal runs stay quiet —
ERRORsuppresses theINFOlines that madeQUIETattractive.Plus an explanation, not just a report
Out-of-range dates are the common cause, will fail on every retry, and the remedy is not obvious from a date range. When the client reports that, the error now adds:
Verification
Reproduced against the live API before and after — the same fetch now names the cutoff and the remedy.
ERRORand neverQUIET; the hint fires when the client reports exceeded coordinates.R CMD check— Status: OK. Full suite green. Installed into both R 4.6.1 and 4.3.2.🤖 Generated with Claude Code