Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
1 task done
esloch opened this issue May 17, 2024 · 0 comments
Open
1 task done

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

esloch opened this issue May 17, 2024 · 0 comments
Assignees

Comments

@esloch
Copy link
Collaborator

esloch commented May 17, 2024

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
@esloch esloch self-assigned this May 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant