Skip to content

Conversation

@brownag
Copy link
Owner

@brownag brownag commented Nov 14, 2025

In some instances (I personally have not encountered it) the server can produce an invalid response when accessing COG with /vsicurl/, which causes terra::rast() to error internally with otherwise valid URLs.

This PR allows for 3 retries: the first after 3 seconds, second after 7 seconds, third after 20 seconds. There will be a warning produced if still failing after 3 retries, and then the offending raster will be skipped in the result.

Closes #14

@brownag brownag self-assigned this Nov 14, 2025
@brownag brownag merged commit 2597315 into main Nov 14, 2025
7 checks 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.

[bug] get_rap() possible errors in fetching COGs should fail gracefully

2 participants