Git Product home page Git Product logo

Comments (4)

mre avatar mre commented on August 11, 2024

There currently is no automatic rate limiting, so it depends on how many GitHub links you want to check.
When using GITHUB_TOKEN, the rate limit is 1,000 requests per hour per repository.

You can check with

lychee --dump --include github README.md | wc -l

If the number is big, you can try to manually configure the number of concurrent requests:

--max-concurrency 10

Also see the lychee docs.

from lychee.

sonnyding1 avatar sonnyding1 commented on August 11, 2024

Thank you for your response, I ran your command and confirmed that there are ~700 GitHub links in the file. However, even if I limit the max-concurrency to 1, there are still ~100 links with 429 error code. Is this normal?

from lychee.

mre avatar mre commented on August 11, 2024

If you run lychee twice, that would be 1400 links and so on the second run I'd expect 400 links to fail if all requests were done asynchronously. With --max-concurrency 1, the entire runtime would be the sum of all individual requests, so the request budget might hold a bit longer, so the 100 failing links sound about right then. Not sure if that's the case.

Nonetheless, per host rate limiting is on the roadmap, but it's not there yet. The next best thing is probably caching requests with --cache.

from lychee.

mre avatar mre commented on August 11, 2024

My previous comment sums up all existing possibilities as of today. Will close this in favor of #989, which will tackle per-host rate limiting.

from lychee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.