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

Timeout of 60 seconds was reached #171

Open
rruiz-s opened this issue Dec 14, 2024 · 0 comments
Open

Timeout of 60 seconds was reached #171

rruiz-s opened this issue Dec 14, 2024 · 0 comments

Comments

@rruiz-s
Copy link

rruiz-s commented Dec 14, 2024

Hello,

First of all thank you for creating the library, it is great for reproducibility.

I was trying to download a file I created in zenodo (DOI 10.5281/zenodo.14478154).

The "section 4.9 Download files from Zenodo records" describes how to do it and it is found in the official zen4R documentation.

The following code queried the file:

my_rec$downloadFiles(path = "download_zenodo")

Which returned:

Download in sequential mode
[zen4R][INFO] ZenodoRecord - Download in sequential modeWill download 1 file from record '14478154' (doi: '10.5281/zenodo.14478154') - total size: 34.8 MiB
[zen4R][INFO] ZenodoRecord - Will download 1 file from record '14478154' (doi: '10.5281/zenodo.14478154') - total size: 34.8 MiBDownloading file 'ghs_aoi_net_largest.gpkg' - size: 34.8 MiB
[zen4R][INFO] Downloading file 'ghs_aoi_net_largest.gpkg' - size: 34.8 MiB
trying URL 'https://zenodo.org/api/records/14478154/files/ghs_aoi_net_largest.gpkg/content'
Content type 'application/octet-stream' length 36503552 bytes (34.8 MB)
==========
downloaded 7.2 MB

Error in download.file(url = file$download, destfile = target_file, quiet = quiet,  : 
  download from 'https://zenodo.org/api/records/14478154/files/ghs_aoi_net_largest.gpkg/content' failed
In addition: Warning messages:
1: In download.file(url = file$download, destfile = target_file, quiet = quiet,  :
  downloaded length 7553184 != reported length 36503552
2: In download.file(url = file$download, destfile = target_file, quiet = quiet,  :
  URL 'https://zenodo.org/api/records/14478154/files/ghs_aoi_net_largest.gpkg/content': Timeout of 60 seconds was reached

It seems a connection problem, I tried two different internet connections and it did not work for me.
In addition, I wonder what I may have done wrong so the file path ends in /content" rather than "largest.gpkg".

The sesioninfo is:

R version 4.4.1 (2024-06-14)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.4 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0 
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C               LC_TIME=es_ES.UTF-8        LC_COLLATE=en_GB.UTF-8     LC_MONETARY=es_ES.UTF-8    LC_MESSAGES=en_GB.UTF-8    LC_PAPER=es_ES.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Madrid
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

other attached packages:
 [1]       zen4R_0.10         sf_1.0-17          units_0.8-5        BAMMtools_2.1.12   ape_5.8            ggsankey_0.0.99999 lubridate_1.9.3    forcats_1.0.0      stringr_1.5.1      dplyr_1.1.4       
[12] purrr_1.0.2        readr_2.1.5        tidyr_1.3.1        tibble_3.2.1       ggplot2_3.5.1      tidyverse_2.0.0    DBI_1.2.3```

Thank you very much in advance!
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

No branches or pull requests

1 participant