Skip to content
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

Catch 4xx and 5xx page.goto() responses to mark invalid URLs as failed #300

Merged
merged 5 commits into from
Apr 26, 2023

Conversation

tw4l
Copy link
Member

@tw4l tw4l commented Apr 25, 2023

Fixes #286

Also fixes #207 by introducing a --failOnFailedSeed CLI option which, when enabled, will fail the crawl with a status code of 1 if there is a page load error on one of the initial seeds.

@tw4l tw4l requested a review from ikreymer April 25, 2023 20:58
@tw4l
Copy link
Member Author

tw4l commented Apr 25, 2023

@rgaudin, curious to get your eyes on the new proposed CLI option to see if it'll work for your use case!

@rgaudin
Copy link
Contributor

rgaudin commented Apr 26, 2023

@tw4l ; thank you. That looks good 👍

@tw4l tw4l requested a review from ikreymer April 26, 2023 21:05
@ikreymer ikreymer merged commit d4bc9e8 into main Apr 26, 2023
@ikreymer ikreymer deleted the issue-286-fail-invalid-url branch April 26, 2023 23:49
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.

Crawler doesn't mark invalid URL as failed Success status code on failure
3 participants