Skip to content

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

@esloch

Description

@esloch

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

  • Direct attempts to fetch data using the medrxivr library in an R console result in the same error.
  • URL validation for the API endpoint confirms that the endpoint is functional:
    https://api.biorxiv.org/details/biorxiv/2024-03-21/2024-04-28/45
    

Impact

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

Additional Information

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions