tldr-pages / tldr-pages/tldr-python-client
Requests are being directed to the website instead of the local cache
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 749
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
tldr ls Error fetching from tldr: HTTP Error 429: Too Many Requests
By default, automatic cache updating is not enabled.
With TLDR_CACHE_MAX_AGE=168, the local cache is always considered expired, and all requests from TLDR commands are routed to the web.
This partly explains the server overload.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how TLDR_CACHE_MAX_AGE is read, how cache expiry is decided, and how commands choose between the local cache and the website. Reproduce the issue with tldr ls and TLDR_CACHE_MAX_AGE=168; done means valid cached pages are served locally without unnecessary web requests, reducing repeated 429 responses.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100