capture-website https://sindresorhus.com --output=screenshot.png
Puppeteer old Headless deprecation warning:
In the near future headless: true
will default to the new Headless mode
for Chrome instead of the old Headless implementation. For more
information, please see https://developer.chrome.com/articles/new-headless/.
Consider opting in early by passing headless: "new"
to puppeteer.launch()
If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.
node:internal/deps/undici/undici:11457
Error.captureStackTrace(err, this);
^
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11457:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
at async Promise.all (index 0)
at async internalCaptureWebsite (file:///Users/zhongyan/.nvm/versions/node/v18.16.0/lib/node_modules/capture-website-cli/node_modules/capture-website/index.js:161:20)
at async captureWebsite.file (file:///Users/zhongyan/.nvm/versions/node/v18.16.0/lib/node_modules/capture-website-cli/node_modules/capture-website/index.js:446:21)
at async main (file:///Users/zhongyan/.nvm/versions/node/v18.16.0/lib/node_modules/capture-website-cli/cli.js:289:3)
at async file:///Users/zhongyan/.nvm/versions/node/v18.16.0/lib/node_modules/capture-website-cli/cli.js:295:1 {
cause: Error: connect ECONNREFUSED 0.0.0.0:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '0.0.0.0',
port: 443
}
}
Node.js v18.16.0
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too