Git Product home page Git Product logo

Comments (5)

github-actions avatar github-actions commented on May 10, 2024

This issue has an outdated Puppeteer version: 22.6.1. Please verify your issue on the latest 22.6.2 version. Then update the form accordingly.


Analyzer run

from puppeteer.

Dilldeo1992 avatar Dilldeo1992 commented on May 10, 2024

Minimal, reproducible example

const puppeteer = require("puppeteer");

function sleep(time) {
   return new Promise(function(resolve) { 
       setTimeout(resolve, time)
   });
}

async function open() {
	const browser = await puppeteer.launch({
		headless: false,
		defaultViewport: null,
		userDataDir: 'usdat'
	})
	const page = await browser.newPage();
	await page.goto("myweb.com")
	await page.waitForSelector('#qa-section-balance-info > div > section > section:nth-child(1) > div.o-layout__item.u-width-2of6 > p');
	await sleep(5000);
	
	while (true) {
		await page.reload();
		await page.waitForSelector('#qa-section-balance-info > div > section > section:nth-child(1) > div.o-layout__item.u-width-2of6 > p');
		await page.screenshot({path:'./ss.png'})
		await sleep(30000)
	}
};

open()

Error string

Uncaught Error: spawn UNKNOWN

Bug behavior

  • Flaky
  • PDF

Background

for screenshot my web

Expectation

I want to screenshot my web every 30 seconds, but when the script runs, I get an error message

Reality

Uncaught Error: spawn UNKNOWN at ChildProcess.spawn (node:internal/child_process:421:11) at Object.spawn (node:child_process:761:9) at new Process (C:\Users\Administrator\Desktop\MitraBukalapak_Auto\node_modu les@puppeteer\browsers\lib\cjs\launch.js:103:56) at launch (C:\Users\Administrator\Desktop\MitraBukalapak_Auto\node_modules@ puppeteer\browsers\lib\cjs\launch.js:50:12) at ChromeLauncher.launch (C:\Users\Administrator\Desktop\MitraBukalapak_Auto \node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:77:54) at async REPL3:1:45 { errno: -4094, code: 'UNKNOWN', syscall: 'spawn'

Puppeteer configuration file (if used)

No response

Puppeteer version

22.6.1

Node version

21.7.1

Package manager

npm

Package manager version

10.5.0

Operating system

Windows

from puppeteer.

Dilldeo1992 avatar Dilldeo1992 commented on May 10, 2024

Minimal, reproducible example

const puppeteer = require("puppeteer");

function sleep(time) {
   return new Promise(function(resolve) { 
       setTimeout(resolve, time)
   });
}

async function open() {
	const browser = await puppeteer.launch({
		headless: false,
		defaultViewport: null,
		userDataDir: 'usdat'
	})
	const page = await browser.newPage();
	await page.goto("myweb.com")
	await page.waitForSelector('#qa-section-balance-info > div > section > section:nth-child(1) > div.o-layout__item.u-width-2of6 > p');
	await sleep(5000);
	
	while (true) {
		await page.reload();
		await page.waitForSelector('#qa-section-balance-info > div > section > section:nth-child(1) > div.o-layout__item.u-width-2of6 > p');
		await page.screenshot({path:'./ss.png'})
		await sleep(30000)
	}
};

open()

Error string

Uncaught Error: spawn UNKNOWN

Bug behavior

  • Flaky
  • PDF

Background

for screenshot my web

Expectation

I want to screenshot my web every 30 seconds, but when the script runs, I get an error message

Reality

Uncaught Error: spawn UNKNOWN at ChildProcess.spawn (node:internal/child_process:421:11) at Object.spawn (node:child_process:761:9) at new Process (C:\Users\Administrator\Desktop\MitraBukalapak_Auto\node_modu les@puppeteer\browsers\lib\cjs\launch.js:103:56) at launch (C:\Users\Administrator\Desktop\MitraBukalapak_Auto\node_modules@ puppeteer\browsers\lib\cjs\launch.js:50:12) at ChromeLauncher.launch (C:\Users\Administrator\Desktop\MitraBukalapak_Auto \node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:77:54) at async REPL3:1:45 { errno: -4094, code: 'UNKNOWN', syscall: 'spawn'

Puppeteer configuration file (if used)

No response

Puppeteer version

22.6.1

Node version

21.7.1

Package manager

npm

Package manager version

10.5.0

Operating system

Windows

from puppeteer.

Dilldeo1992 avatar Dilldeo1992 commented on May 10, 2024

Minimal, reproducible example

const puppeteer = require("puppeteer");

function sleep(time) {
   return new Promise(function(resolve) { 
       setTimeout(resolve, time)
   });
}

async function open() {
	const browser = await puppeteer.launch({
		headless: false,
		defaultViewport: null,
		userDataDir: 'usdat'
	})
	const page = await browser.newPage();
	await page.goto("myweb.com")
	await page.waitForSelector('#qa-section-balance-info > div > section > section:nth-child(1) > div.o-layout__item.u-width-2of6 > p');
	await sleep(5000);
	
	while (true) {
		await page.reload();
		await page.waitForSelector('#qa-section-balance-info > div > section > section:nth-child(1) > div.o-layout__item.u-width-2of6 > p');
		await page.screenshot({path:'./ss.png'})
		await sleep(30000)
	}
};

open()

Error string

Uncaught Error: spawn UNKNOWN

Bug behavior

  • Flaky
  • PDF

Background

for screenshot my web

Expectation

I want to screenshot my web every 30 seconds, but when the script runs, I get an error message

Reality

Uncaught Error: spawn UNKNOWN
at ChildProcess.spawn (node:internal/child_process:421:11)
at Object.spawn (node:child_process:761:9)
at new Process (C:\Users\Administrator\Desktop\MitraBukalapak_Auto\node_modu
les@puppeteer\browsers\lib\cjs\launch.js:103:56)
at launch (C:\Users\Administrator\Desktop\MitraBukalapak_Auto\node_modules@
puppeteer\browsers\lib\cjs\launch.js:50:12)
at ChromeLauncher.launch (C:\Users\Administrator\Desktop\MitraBukalapak_Auto
\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:77:54)
at async REPL3:1:45 {
errno: -4094,
code: 'UNKNOWN',
syscall: 'spawn'

Puppeteer configuration file (if used)

No response

Puppeteer version

22.6.1

Node version

21.7.1

Package manager

npm

Package manager version

10.5.0

Operating system

Windows

from puppeteer.

OrKoN avatar OrKoN commented on May 10, 2024

Not able to reproduce (after correcting the invalid URL). Try Windows-specific tips from https://pptr.dev/troubleshooting to see if nothing is missing on your system.

from puppeteer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.