-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too many Network errors: Looking for suggestions #634
Comments
17k+ links are quite astonishing. 🤩 Checking the report, I can see a few things:
There might be more issues, but these are the ones I can see by taking a quick look. You're right that we should add the status code to the Markdown output. This was an oversight on my end. I can add it but I'd be thankful for a PR which brushes up the Markdown output a little bit. |
It's all the power of Rust and a great tool by you @mre, I tweaked a lot with the CPU and concurrency count to see how much GitHub would appreciate getting pushed. I can try a little more to respect their rate-limiting, I don't want to DDOS any site. I will make change to accept the 429, I think it's okay to do that. Thanks for taking a look, appreciate it. I will see about that Markdown output. I will post a renewed report on what improved after then for others to get help. |
@vipulgupta2048 are you still planning to post the renewed report or can we close this issue? 😅 |
Thanks for the bump @mre, here you go Following the suggestion to allow 429 has greatly decreased errors for us as you can see above. Hope this helps! |
ℹ️ If anyone runs into issues with rate limiting in the future, there is now a troubleshooting guide over at lychee.cli.rs/#/rate-limits. |
Edit: it moved again; see below. |
Thanks for mentioning the updated link! ⭐ |
Ironically, these links do not take you to the right page. Here is the right link for anyone reading in future: https://lychee.cli.rs/troubleshooting/rate-limits/#_top (at the time of writing my comment). |
Haha, that is indeed ironic. We switched the docs backend lately and that changed the links. Thanks for the updated URL. 😆 |
Hey @mre wanted to probably ping before opening this issue again. I have set 429 to be an accepted code on my config: https://github.com/balena-io/docs/blob/11b7527d663e34709a2a6a9725102ef76a5fe732/lychee.toml#L50 I have also followed the troubleshooting guide mentioned above on rate limits, the only thing not applied is retries 0. Yet, I am seeing about 200 links failing due to 429 error code still: https://github.com/balena-io/docs/issues (First 4 issues are reports) What am I missing here? Maybe I need to update my lychee action to receive a new update that uses the accepted codes array correctly? |
Reopening as there still seem to be issues. Thanks for the heads up. |
It's nice to see I am not alone in this. Would you think having |
Oh, I just looked at your pipeline and noticed that you're still running on 0.14.0. Can you update to the latest version? |
Awesome find. I think I was looking at the wrong place for the changelog of the feature (lychee-action). Let me update the action, and report back on Monday how the new report goes. Apologize for the noise. |
That did it balena-io/docs#2968 |
Good times. Thanks for the feedback. |
Hey folks, Have been tinkering with Lychee lately to run on static HTML and check about 17k+ links. From those, I am getting about 400+ links resulting in a Network error. I wanted to open an issue here to ask folks if I might be doing something wrong or if something can be improved to mitigate these.
lychee.toml
file: https://github.com/balena-io/docs/blob/master/lychee.tomlI have set
verbose: true
I wish it could show what the actual HTTP error code is in the report that gets generated.The text was updated successfully, but these errors were encountered: