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

141
Views
Each request has its own proxy

are there ready-made solutions for using a proxy? I'm currently using electron, so I don't care if it's a web library or a node library. It would be nice if you could log in through a proxy and also use a socks proxy.

Already tried(not working):

  • Fetch with proxy
  • axios with proxy
  • request with proxy

Below is my latest attempt. When using https, it gives the following error:

Client network socket disconnected before secure TLS connection was established

I looked for ways to fix this, but nothing helped. When using http, it returns my ip, not the proxy ip.

Excuse me for bad english and also bad technical background. Thanks in advance.

const HttpsProxyAgent = require("https-proxy-agent");
let axios = require("axios");

const httpsAgent = new HttpsProxyAgent({ host: "proxy", port: "port", secureProxy: true })

//use axios as you normally would, but specify httpsAgent in the config
axios = axios.create({ httpsAgent });

axios.get('https://api.ipify.org?format=json')
    .then(({ data }) => console.log(data))
    .catch(res => console.log(res))
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!