Troubleshooting¶
Empty results¶
If many searches return 0 results, try:
- Using broader search terms
- Expanding the date range
- Checking spelling of scientific terms
- Using alternative gene names or synonyms
Rate limiting errors (HTTP 429)¶
If pubmatrix() raises a RuntimeError after repeated 429 responses:
- Obtain and use an NCBI API key (
api_key=...) - Reduce
n_workersor the size of your search matrix - Increase
n_triesto allow more retries with backoff
Long search times¶
For large matrices:
- Break the search into smaller sub-matrices
- Use a more specific
daterange - Set
cache_dirso repeated runs skip already-fetched pairs - Increase
n_workers, within the NCBI rate limit