sindresorhus / capture-website-cli

Capture screenshots of websites from the command-line
MIT License
821 stars 42 forks source link

connect ECONNREFUSED 0.0.0.0:443 #50

Open clrockrock opened 10 months ago

clrockrock commented 10 months ago

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

image