Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

376
Views
Titiritero "¡Error al iniciar el proceso del navegador!" al iniciar varios navegadores

Estoy tratando de iniciar varias instancias del navegador para manejar mis tareas simultáneamente. Para iluminar usé el siguiente código:

 export async function play() { const b1 = await launchBrowserPuppeteer() const b2 = await launchBrowserPuppeteer() const b3 = await launchBrowserPuppeteer() }

dónde:

 export const launchBrowserPuppeteer = async () => { const options = { headless: false, userDataDir: env.chromeUserDataDir, executablePath: env.chromeExecutablePath, } return await puppeteer.launch(options); }

Esperaba que se abrieran tres ventanas separadas, pero lo que sucede es así:

Primero se abre una ventana de cromo (b1), luego se abre una nueva pestaña dentro de esa ventana (b2) y luego se lanza una excepción:

Error: ¡Error al iniciar el proceso del navegador!

RESOLUCIÓN DE PROBLEMAS: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

 at onClose (\node_modules\puppeteer\src\node\BrowserRunner.ts:268:9) at ChildProcess.<anonymous> (\node_modules\puppeteer\src\node\BrowserRunner.ts:255:61) at ChildProcess.emit (node:events:539:35) at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

Cuando close() los navegadores y abro uno nuevo, no obtengo errores. ¿El lanzamiento de múltiples navegadores generalmente es compatible con titiritero, o lo estoy usando de manera incorrecta?

Cualquier sugerencia es muy apreciada.

Estoy en una máquina con Windows y la versión de cromo es 102.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!