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

occ_download_get #464

Closed
jessica-982023 opened this issue May 20, 2021 · 7 comments
Closed

occ_download_get #464

jessica-982023 opened this issue May 20, 2021 · 7 comments
Milestone

Comments

@jessica-982023
Copy link

[Screen Shot 2021-05-20 at 12 41 12 PM

Session Info
In occ_occurance_ git i am having the same issue as #422
@sckott
Copy link
Contributor

sckott commented May 20, 2021

Please share your R session info, the output of sessionInfo() AFTER loading rgbif in the R session

@oflora
Copy link

oflora commented May 21, 2021

Hi,

I get the same error in a script that worked a few months ago.
The following code:

gbif_key <- name_backbone("Limonium dufourii")

gbif_occ <- occ_download(pred("taxonKey", gbif_key$usageKey))
gbif_occ <- occ_download_get(gbif_occ)

returns:

Error in occ_download_get(gbif_occ) : 
  response content-type != application/octet-stream; q=0.5
Session Info
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS

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

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

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

other attached packages:
[1] rgbif_3.5.2

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6        pillar_1.6.1      compiler_3.6.3    plyr_1.8.6        tools_3.6.3      
 [6] uuid_0.1-4        jsonlite_1.7.2    lifecycle_1.0.0   tibble_3.1.2      gtable_0.3.0     
[11] pkgconfig_2.0.3   rlang_0.4.11      rstudioapi_0.13   cli_2.5.0         DBI_1.1.1        
[16] curl_4.3.1        crul_1.1.0        wellknown_0.7.2   dplyr_1.0.6       httr_1.4.2       
[21] stringr_1.4.0     xml2_1.3.2        generics_0.1.0    vctrs_0.3.8       triebeard_0.3.0  
[26] grid_3.6.3        tidyselect_1.1.1  httpcode_0.3.0    glue_1.4.2        data.table_1.14.0
[31] R6_2.5.0          oai_0.3.2         fansi_0.4.2       conditionz_0.1.0  ggplot2_3.3.3    
[36] purrr_0.3.4       magrittr_2.0.1    whisker_0.4       urltools_1.7.3    scales_1.1.1     
[41] ellipsis_0.3.2    assertthat_0.2.1  colorspace_2.0-1  utf8_1.2.1        stringi_1.6.2    
[46] wk_0.4.1          lazyeval_0.2.2    munsell_0.5.0     crayon_1.4.1     

Thanks for everything! :)

@jessicat22
Copy link

Here is my session info @sckott
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

other attached packages:
[1] rgbif_3.5.3.93 dplyr_1.0.6 geosphere_1.5-10 rgeos_0.5-5 sp_1.4-5
[6] red_1.5.0 lwgeom_0.2-6 sf_0.9-8

loaded via a namespace (and not attached):
[1] nlme_3.1-152 oai_0.3.2 webshot_0.5.2 progress_1.2.2
[5] httr_1.4.2 tools_4.1.0 utf8_1.2.1 rgdal_1.5-23
[9] R6_2.5.0 vegan_2.5-7 KernSmooth_2.23-20 DBI_1.1.1
[13] lazyeval_0.2.2 mgcv_1.8-35

@sckott sckott added this to the 3.6 milestone May 24, 2021
@sckott
Copy link
Contributor

sckott commented May 24, 2021

Thanks both

@sckott sckott closed this as completed in 85e4113 May 24, 2021
@sckott
Copy link
Contributor

sckott commented May 24, 2021

Please try again after reinstalling like remotes::install_github("ropensci/rgbif") and let me know if it works now

@oflora
Copy link

oflora commented May 26, 2021

Now it works, thanks

@sckott
Copy link
Contributor

sckott commented Jun 1, 2021

great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants