Skip to content

To many Request is not caught when running esportAsJSONLD() on many records. #189

Description

@rkrug

I am exporting 428 records to jsonld format, and I get an "To many requests" error which is then saved instead of the jsonld.

community = "ipbes"
max_records = 1000
zenodo <- zen4R::ZenodoManager$new()
records <- zenodo$getRecords(
        q = paste0("communities:", community),
        size = max_records,
        exact = FALSE
      )

lapply(
    records,
    function(x) {
      x$exportAsJSONLD(
        file = file.path(jsonld_path, paste0(x$getId(), ".jsonld"))
      )
    }
  )

It is possible that it does not occur in all cases as I might have done multiple requests before.

Also: This is not the most efficient approach to achieve this - is there a way of doing this more efficient?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions