Repository navigation
Conversation
The bundled OpenAlex tool reads process.env.OPENALEX_API_KEY (science-database-openalex.ts) and its rate-limit diagnostics tell users to set it, but .env.example did not list the variable, so the keyed budget path was undiscoverable and runs silently fell back to the anonymous budget. We hit this in production: a headless research session without the key received a 429 with Retry-After: 22439s (~6.2h) and stalled with zero deliverable. Listing the variable next to the existing NCBI_API_KEY precedent makes the free keyed path discoverable. No code change.
Collaborator
|
Thanks! Cherry-picked into main with your authorship (83aa148), with the key URL changed to https://openalex.org/settings/api to match the tool's own hint. Ships in 0.5.49. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
OPENALEX_API_KEYto.env.example(one comment + one line), next to the existingNCBI_API_KEYprecedent.Why
The bundled OpenAlex tool reads
process.env.OPENALEX_API_KEY(seeextensions/research-tools/science-database-openalex.ts), and its rate-limit diagnostics already advise setting it — but.env.examplenever listed the variable, so the keyed budget path was undiscoverable and sessions silently ran on the anonymous budget.We hit this in production on a long headless research run: without the key, one OpenAlex request got
429withRetry-After: 22439s(~6.2 hours), the run stalled and produced zero deliverable. The free key from https://openalex.org raises rate limits, and listing it here is the cheapest fix.Scope
Docs only — no code change.