AtlasOfLivingAustralia / galah-R

Query living atlases from R
https://galah.ala.org.au
38 stars 3 forks source link

`atlas_media` not returning results #145

Closed mjwestgate closed 1 year ago

mjwestgate commented 2 years ago

When I try quite simple queries with atlas_media, they often fail. For example, to get images for this record, I get:

atlas_media(
  filter = galah_filter(id == "ead2f896-4c07-4e5e-9dc4-be5c9ee7643f"), 
  download_dir = "cache")
  |========================================================================| 100%
Calling the API failed for `atlas_media`.
ℹ This might mean that the ALA system is down. Double check that your query is correct.
ℹ If you continue to see this message, please email support@ala.org.au.
# A tibble: 0 × 0

On further investigation, it appears there are (at least) two problems:

Both problems can be solved by choosing simpler solutions and looping/lapply-ing across all identifiers. This approach has the advantage that the API supports downloading thumbnails by adding thumbnail to the url, perhaps via a type argument.

mjwestgate commented 1 year ago

labelling this as fixed