Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

273
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda