link-check icon indicating copy to clipboard operation
link-check copied to clipboard

Response code `200` represents as "dead"

Open chris-dura opened this issue 4 years ago • 0 comments
trafficstars

I'm seeing some cross-links to Abstract and Figma documentation URLs represent as "dead" by link-check, but when I inspect in my dev tools, I get a 200 response.

const linkCheck = require('link-check');

linkCheck('https://help.abstract.com/hc/en-us/sections/360012262052-Collaborate-in-projects', function (err, result) {
	if (err) {
		console.error(err);
		return;
	}
	console.log(`${result.link} is ${result.status}`);
});

Test URLs:

  • https://help.abstract.com/hc/en-us/categories/360005436612-Branches
  • https://help.abstract.com/hc/en-us/sections/360012262012-Commits
  • https://help.abstract.com/hc/en-us/sections/360012262032-Merge-your-work
  • https://help.abstract.com/hc/en-us/sections/360012262052-Collaborate-in-projects
  • https://help.figma.com/hc/en-us/articles/360039823654-Download-the-Figma-desktop-app

Could be possibly related to the sites not liking the user-agent? https://github.com/tcort/link-check/issues/46

chris-dura avatar Sep 29 '21 17:09 chris-dura