Closed mskyttner closed 7 years ago
I suspect this is instances using an old version of the biocache service.
We are on 1.8.1... https://github.com/mskyttner/ala-docker/blob/master/Makefile#L17 there seems to be a 1.8.2-SNAPSHOT too, should we aim for that one?
I'd stick with 1.8.1 for now.
The github ALA4R now has an additional server_config field for the biocache server version. This works for me:
devtools::install_github("AtlasOfLivingAustralia/ALA4R")
ala_config(verbose=TRUE)
ala_config(caching="off")
server_config <- getOption("ALA4R_server_config")
ws1 <- "http://datos.gbif.es/biocache-service/"
server_config$base_url_biocache <- ws1
options(ALA4R_server_config = server_config)
x1 <- occurrences(taxon = "Apus apus",download_reason_id = 10) ## fails, as in your example
server_config$biocache_version <- "1.8.1"
options(ALA4R_server_config = server_config)
x1 <- occurrences(taxon = "Apus apus",download_reason_id = 10) ## ok
Does that seem like a reasonable solution?
Yes, thank you, very reasonable!
We have installed ALA4R with devtools and we confirm that it works for us to get data from some European instances now....
I think this issue can be closed now.
@mskyttner - this is now in the CRAN version of ALA4R (v1.5.6)
We use ALA4R to retrieve occurrence data from Atlas instances in Europe. The request for fetching the occurrences appear to follow this form:
However, these kind of requests fails for all the instances except the one in Australia. When we change the request to not use the sourceTypeId=2001 parameter and value, it succeeds for all instances of biocache-service..
Can this be a configuration issue where the European instances of the Atlas do not support the sourceTypeId parameter? Or is it some data missing in that service?
To replicate please use this R code: