Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

277
Vistas
How to resolve ERR_PROXY_CONNECTION_FAILED in puppeteer connection while calling page.goto

Image of error I receive while the code executes

Here is the code I am using :

proxy.js -

class Proxy
{
    static create() {
     return new Proxy();
   }
   this.browser = await puppeteer.launch({
       args: [`--proxy-server=socks5:127.0.0.1:9150`, "--no-sandbox",
      ],
     });
    async newPage(newBrowser = false) {
     /* Ensure a browser instance is present */
     if (!this.browser) {
       await this.launchNewBrowser();
     }
 
     /* Close all other pages/tabs */
     await this.closePages();
}

connections.js ( calling from this file )

const createTBrowser = require("..pathTo/proxy");   
const Browser = createBrowser();
const page = await Browser.newPage();
await page.goto('Valid_URL');
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The proxy is not working because the pupeteer is using a self signed cert,so adding a ignore flag to the args might fix your problem.

`class Proxy
 {
  static create() {
  return new Proxy();
 }
this.browser = await puppeteer.launch({
   args: [`--proxy-server=socks5:127.0.0.1:9150`,
          "--no-sandbox",
          "--ignore-certificate-errors",
          "--ignore-certificate-errors-spki-list" ,
  ],
 });
async newPage(newBrowser = false) {
 /* Ensure a browser instance is present */
 if (!this.browser) {
   await this.launchNewBrowser();
 }

 /* Close all other pages/tabs */
 await this.closePages();
}`
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda