bmaitner / RBIEN

Tools for accessing the Botanical Information and Ecology Network (BIEN) database
http://bien.nceas.ucsb.edu/bien/
Other
43 stars 10 forks source link

Unable to complete queries #39

Open hoffenbauer opened 1 year ago

hoffenbauer commented 1 year ago

When trying to execute queries on BIEN, the following error message is shown: There was a problem with the query. This is most often due to internet connection issues, but may also be due other factors such as an outdated version of the package.

The error is reproducible in different systems (Windows and Linux), connections (both cable and wireless) and environments (both RStudio and pure R console). Network connection was monitored during the execution and no instabilities or poor connection were detected. The error affects different functions, the following were tested: BIEN_occurrence_country() BIEN_occurrence_state() BIEN_plot_sf() all of which with different parameters.

The relevant versions are: RBIEN 1.2.6 R 4.3.1 RStudio 2023.06.2+561 "Mountain Hydrangea"

bmaitner commented 1 year ago

When the package returns these errors, are they returned immediately (within a minute or so), or does the function run a long time and then throw the error?

hoffenbauer commented 1 year ago

They take a long time, hours. As an update, I tested with very small countries, e.g. Monaco, and it works just fine. Maybe it could be a time-out because of the size? Specifically, I'm trying to retrieve occurrence data for Brazil.

bmaitner commented 1 year ago

Thanks for the info! I think you're spot on about the time-out error due to size. This normally shouldn't be a problem, but we've recently switched from a physical server to a cloud-based server and the new server seems to be running slower than expected (we're working on trying to figure out why and address this). Are you looking to pull all occurrences from Brazil or just a subset of species/clades?

hoffenbauer commented 1 year ago

Thanks for the follow-up. I'm trying to get all the occurrences from Brazil.