tldr-pages / tldr-pages/tldr-python-client

Requests are being directed to the website instead of the local cache

Open
#364 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.