You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have VPS with Ubuntu 20.0.4 version and I installed puppeteer on it if not passed the --no-sandbox argument
the Ubuntu has Error
:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md Error
but if I have pass this arguments headless: true, args: ['--no-sandbox'] puppeteer is launched but its has Error open new Page Error: Evaluation failed: TypeError: Cannot read properties of null (reading 'querySelectorAll') at pptr://puppeteer_evaluation_script:3:24
Is There any way to Launch puppeteer without sandbox in Ubuntu? or if not please help me
Bug behavior
Flaky
PDF
Minimal, reproducible example
constPuppeteer=require("puppeteer");letpage="";asyncfunctiondoCrawl(){try{constbrowser=awaitPuppeteer.launch({executablePath:'/usr/bin/chromium',args:['--no-sandbox','--disable-setuid-sandbox']});// Create a new page objectpage=awaitbrowser.newPage();console.log('open new Page');awaitpage.goto("site Url ...",{waitUntil: "domcontentloaded",timeout: 0,});awaitpage.waitForSelector("#technicalstudiesSubTabs");awaitpage.click("xpath/"+'//*[@id="timePeriodsWidget"]/li[6]/a');awaitpage.waitForTimeout(60000)constriskyPoints=awaitgetR2AndS2();awaitpage.waitForTimeout(8000)awaitpage.click("xpath/"+'//*[@id="timePeriodsWidget"]/li[7]/a');awaitpage.waitForTimeout(8000)constsafePoints=awaitgetR2AndS2();console.log('get Points',riskyPoints,safePoints);return{riskyPoints,safePoints}}catch(error){console.log(error,'error');}}asyncfunctiongetR2AndS2(){constpivotPointsTable=awaitpage.$("#curr_table > tbody ");constpivotPointsData=awaitpage.evaluate((table)=>{constdata=[];constrows=table.querySelectorAll("tr");rows.forEach((row)=>{constvalues=[];constcells=row.querySelectorAll("td");cells.forEach((cell)=>{values.push(cell.innerText);});if(values.length){data.push(values);}});returndata;},pivotPointsTable);constS2=pivotPointsData[0][2];constR2=pivotPointsData[0][6];return{Sell: Number(R2.split('.')[0])-1+'.'+R2.split('.')[1],Buy: Number(S2.split('.')[0])+1+'.'+S2.split('.')[1]}}
I did all the instructions mentioned in your link but the second problem still persists Error: Evaluation failed: TypeError: Cannot read properties of null (reading 'querySelectorAll')
while is worked on my Linux System if not passed ['--no-sandbox']
Bug expectation
I have VPS with Ubuntu 20.0.4 version and I installed puppeteer on it if not passed the --no-sandbox argument
the Ubuntu has Error
:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md Error
but if I have pass this arguments headless: true, args: ['--no-sandbox'] puppeteer is launched but its has Error
open new Page Error: Evaluation failed: TypeError: Cannot read properties of null (reading 'querySelectorAll') at pptr://puppeteer_evaluation_script:3:24
Is There any way to Launch puppeteer without sandbox in Ubuntu? or if not please help me
Bug behavior
Minimal, reproducible example
Error string
Error: Failed to launch the browser process! [0523/124928.433521:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
Puppeteer configuration
No response
Puppeteer version
18.2.1
Node version
18.12.0
Package manager
npm
Package manager version
8.19.2
Operating system
Linux
The text was updated successfully, but these errors were encountered: