Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Limit the response size for ORCID lookup #80

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

edsu
Copy link
Contributor

@edsu edsu commented Jul 11, 2024

We are encountering situations when looking up works for an ORCID are encountering an OpenAlex API Varnish error when the response is too big. To avoid this we can only request the DOI instead of the full record, which limits the size of the response, while continuing to page with per_page=200.

Fixes #79

To avoid situations when looking up works for an ORCID are encoutering a
Varnish error from the OpenAlex API when the response is too big, we can
only request the DOI, which limits the size of the response. This means
we can continue paging with `per_page=200`.

Fixes #79
@lwrubel lwrubel merged commit fe61779 into main Jul 11, 2024
1 check passed
@lwrubel lwrubel deleted the t79-openalex-per-page branch July 11, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenAlex API error during openalex_harvest_dois
2 participants