On Mon, 13 Jan 2025 at 19:45, Craig Russell <apache....@gmail.com> wrote: > > I get an error that I cannot understand: > > I looked at the page source using Safari develop tools but cannot find the > sub! reference. > > Any ideas?
The page shown by the browser is the output from the server. To find the bug you need to look at the server code that does the work. In this case, download_check.cgi [1], which calls download_check.rb [2] to do the work. This can be tested using CLI mode: $ tools/download_check.rb https://opennlp.apache.org/download.html >> GET https://opennlp.apache.org/download.html Fetched https://opennlp.apache.org/download.html - OK (200) Checking link syntax >> HEAD https://downloads.apache.org/opennlp/KEYS #<NoMethodError: undefined method `sub!' for nil:NilClass> tools/download_check.rb:499:in `block in _checkDownloadPage' tools/download_check.rb:496:in `scan' tools/download_check.rb:496:in `_checkDownloadPage' tools/download_check.rb:364:in `checkDownloadPage' tools/download_check.rb:838:in `<main>' ================= <snip> I have fixed the bug. Sebb [1] https://github.com/apache/whimsy/blob/master/www/members/download_check.cgi [2] https://github.com/apache/whimsy/blob/master/tools/download_check.rb > Craig > > The page at https://opennlp.apache.org/download.html failed our checks: > Fatal errors: > • undefined method `sub!' for nil:NilClass > Tests performed > • I: - Will check links if download page has no errors > • I: - Will not include archive.apache.org links in checks > • I: - Checking https://opennlp.apache.org/download.html [opennlp] > TLP true ... > • I: - Checked GET https://opennlp.apache.org/download.html - OK (200) > • I: - Page does not reference dist.apache.org > • I: - Page does not reference repository.apache.org > • I: - Found KEYS link > • I: - Checked HEAD https://downloads.apache.org/opennlp/KEYS - OK > (200) > • F: - undefined method `sub!' for nil:NilClass > F: fatal, E: Error, W: warning, I: info (success) > Craig L Russell > c...@apache.org >