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

272
Views
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 answers
Answer question

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 Report
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!