Comments (5)
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.
from puppeteer.
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
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.
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
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.
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
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.
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)
- [Bug]: Unable to bundle puppeteer script with wepack HOT 2
- [Feature]: Inserting a Audio and video Stream HOT 2
- PDF export error for chart and HTM amchart5 HOT 1
- [Bug]: Stuck at puppeteer.connect() HOT 2
- [Bug]: Even your example code is not working - SyntaxError: Cannot use import statement outside a module HOT 1
- [Feature]: Inserting a Audio and video Stream
- "[network.spec] network Page.authenticate should work" test is flaky HOT 1
- [Bug]: Browser gets disconnected in Docker without any errors HOT 28
- [Bug]: Failed to launch the browser process!\nchrome_crashpad_handler: --database is required HOT 2
- Docs: the index page for docs should not be a readme.md
- [Feature]: Accessing WebRTC peerConnection in puppeteer
- Force pushing to default branch HOT 1
- [Bug]: ERROR in DIGITALOCEAN APPLICATION PLATFORM HOT 2
- [Bug]: when accessing browser.targets() I don't get info about _targetInfo which have property like _targetInfo.title , _targetInfo.type... HOT 2
- [Bug]: Opening the extension popup.html using will return new empty popup without any data how to get popup.html within the context of a specific tab/website HOT 4
- [Bug]: Background is pink when using background: repeating-linear-gradient HOT 10
- [Bug]: Could not able to get the selectors when headless: true, but it is working with headless:false HOT 1
- [Bug]: Freezing when querying frames on certain websites HOT 11
- [Feature]: `Mouse.dragAndDrop` API not supported for WebDriver BiDi HOT 7
- Error: Attempted to use detached Frame HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppeteer.