Needs review
Project:
Link checker
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2024 at 18:18 UTC
Updated:
16 Jan 2026 at 10:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
marc.bauWhat links are never checked? Example?
If non-existend you should get an error. e.g. host name lookup failed.
Comment #3
eahonet commentedAny updates to this one @ashbeeb ? I have a non-existent url (a .com) that continues to show "Last Checked" as "Never".
Comment #4
schlaukopf commentedI was able to reproduce the same error and found that the issue occurs with domains that don’t exist. Guzzle was unable to resolve the host, which resulted in a ConnectException being thrown instead of a RequestException. This patch addresses the issue by handling TransferException, which will cover both cases.
Comment #5
divya.sejekan commentedThe Patch is applied successfully. Links never checked issue looks resolved , now the links are verified and related error messages . Tried with bunch of different types of URLS.
Steps to reproduce:
1. Make a basic page with links to http://nonexistentdomainasdf.com and http://eia.gov
2. Re-scan to add links to list
3. Run cron
4. See that links are still listed as "Never" checked
RTBC++
Comment #6
eiriksmGreat work, thanks everyone
If someone could convert this into a merge request, that would be a great start.
It also would be nice to add some tests here. I hope that should be fairly easy, adding to the existing coverage.
Finally. A bit unsure if showing a 502 is more helpful than showing it was never checked. Don't we have other codes for such errors in the codebase already? 🤓
Comment #9
saidatomComment #11
saidatom@eiriksm MR provided with tests. Everything green.