From 135614e2945b354275f58808cc77df24a1c6d2d5 Mon Sep 17 00:00:00 2001 From: Jason Johnston Date: Fri, 29 Aug 2025 16:12:48 -0400 Subject: [PATCH 1/2] Update to use `HEAD` Also added `console.log` line to help debug any future errors Fixes #1248 --- tests/validator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/validator.js b/tests/validator.js index 941dc914..3c597127 100644 --- a/tests/validator.js +++ b/tests/validator.js @@ -20,9 +20,10 @@ function validateJson (query, isValidJson) { async function validateLink (linkUrl) { try { - const response = await fetch(linkUrl); + const response = await fetch(linkUrl, { method: 'HEAD' }); return response.ok; } catch (error) { + console.log(JSON.stringify(error, null, 2)); return false; } } From d7c3e75052ba87f659299be635229aaed528bf49 Mon Sep 17 00:00:00 2001 From: Jason Johnston Date: Fri, 29 Aug 2025 16:15:08 -0400 Subject: [PATCH 2/2] Update tests/validator.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- tests/validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/validator.js b/tests/validator.js index 3c597127..6adff433 100644 --- a/tests/validator.js +++ b/tests/validator.js @@ -23,7 +23,7 @@ async function validateLink (linkUrl) { const response = await fetch(linkUrl, { method: 'HEAD' }); return response.ok; } catch (error) { - console.log(JSON.stringify(error, null, 2)); + console.error(JSON.stringify(error, null, 2)); return false; } }