traitecoevo/infinitylists

Need a fail graceful for github download

Closed this issue · 0 comments

Downloading the Github releases has been failing, need a fail graceful strategy here

downloaded length 95535095 != reported length 248419778
Backtrace:
    ▆
 1. ├─testthat::expect_visible(infinitylistApp()) at test-run_app.R:2:3
 2. │ └─base::withVisible(call)
 3. └─infinitylists::infinitylistApp()
 4.   └─infinitylists:::check_and_download_update()
 5.     └─utils::download.file(...)
── Warning ('test-run_app.R:2:3'): App launches ────────────────────────────────
URL 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/675475007/e232c206-a855-4219-817f-f4d1dc287c7f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240301%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240301T022514Z&X-Amz-Expires=300&X-Amz-Signature=847589fc0535f0df13d08feb35b254684ada1cb0812d78406e3ba8c5dd0c4d98&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=675475007&response-content-disposition=attachment%3B%20filename%3DAustralia-Plantae-2023-11-29.parquet&response-content-type=application%2Foctet-stream': Timeout of 60 seconds was reached

https://community.rstudio.com/t/internet-resources-should-fail-gracefully/49199/4