thegraphnetwork-literev / es-journals

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Resolve non-numeric argument error in mx_api_content for medrxivr #12

Open esloch opened 4 months ago

esloch commented 4 months ago

Description

When attempting to download data from the medrxivr API using the mx_api_content function, the following error is encountered:

Error in count/100 : non-numeric argument to binary operator
Calls: mx_api_content
Execution halted

Steps to Reproduce

  1. Run the following command in the terminal:
    makim scheduler.download-rxivr --server medrxiv --begin 2024-03-14 --end 2024-05-17 --target /opt/services/es-journals/data/rxivx/medrxiv/downloaded/
  2. Alternatively, execute the following R code:
    library(medrxivr)
    preprint_data <- mx_api_content(server = "medrxiv", from_date = "2024-03-14", to_date = "2024-05-17")

Observed Behavior

The command fails with the error message:

Error in count/100 : non-numeric argument to binary operator

Additional Testing

Impact

This error prevents the retrieval of preprint data from the medrxivr API, impacting data processing workflows.

Additional Information

Code of Conduct