Skip to content

Update lychee config to accept more status codes and add URLs to lycheeignore#834

Open
willingc wants to merge 2 commits intopyOpenSci:mainfrom
willingc:lychee_config
Open

Update lychee config to accept more status codes and add URLs to lycheeignore#834
willingc wants to merge 2 commits intopyOpenSci:mainfrom
willingc:lychee_config

Conversation

@willingc
Copy link
Collaborator

@willingc willingc commented Mar 14, 2026

The changes to the config will accept 200 through 403 status codes. This should avoid the current Errors for redirects. Some URLs added to lycheeignore to prevent spurious errors due to Cloudflare and other destination site configs that block lychee.

This PR was created with assistance from Claude Opus. It was reviewed and verified by me.

Closes #517

willingc and others added 2 commits March 13, 2026 19:01
Add /blog/ prefix to 10 relative links in blog posts that were resolving
as 404s. Add bloomberg.com and doi.org to lycheeignore as they block
automated requests with 403s.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ot-protected sites

The --accept 403 flag was overriding the default accepted codes, causing
valid 200 responses to be rejected. Also added bot-protected domains to
.lycheeignore to prevent false positives from sites with bot detection.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@willingc willingc requested a review from lwasser as a code owner March 14, 2026 02:14
@willingc
Copy link
Collaborator Author

This was built on top of #833

@willingc
Copy link
Collaborator Author

Cool. This fixed the spew.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Check failing links caught by lychee

1 participant