Questions tagged [https-proxy-agent]

22 questions
4
votes
1 answer

"ERR_HTTP_HEADERS_SENT:Cannot set headers after they are sent to the client" while http-proxy-middleware combined with https-proxy-agent

The Node (Express JS) middle-ware uses http-proxy-middleware to proxy requests and responses between client (probably Chrome browser) and jira server. It also uses https-proxy-agent to add proxy agent as the host server requires proxy to access Jira…
3
votes
0 answers

Using Native Fetch With Proxy in Node.js doesn't change my IP

I've upgraded my Node.js to the latest version which supports fetch natively. I'm trying to use a free public proxy to test, however when I'm making a request, it still comes from me directly. I know that because I'm calling an "Get my IP" service,…
3
votes
0 answers

Using Axios & https-proxy-agent : Error: self signed certificate in certificate chain

Here is my simple fetching code using axios and https-proxy-agent to use proxy server. When I'm running this code: const axios = require('axios'); const HttpsProxyAgent = require('https-proxy-agent'); const init = async() => { try { …
Henri
  • 1,571
  • 5
  • 23
  • 38
2
votes
1 answer

Node httpAgent with proxy and certificates (https-proxy-agent with TLS)

So I'm trying to make a call inside my node test (AVA) that uses proxy and TLS authorization. I'm using: typescript: 3.9.3 ts-node: 8.10.2 axios: 0.21.1 https-proxy-agent: 5.0.0 What I've learnt so far: AxiosProxyConfig is broken at the moment so…
2
votes
0 answers

Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required')))

I'm trying to connec to a website via proxy. however getting the below error ++++++ Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required'))) ++++++ My python code is as follows…
Mohit
  • 23
  • 1
  • 4
1
vote
1 answer

Axios Unable to make request to IP address (Error: connect ECONNREFUSED)

I am trying to make a request to a 3rd party SOAP API, provided an IP address http://XXX.XXX.XXX.XXX:40871 I get the following error: { "success": false, "error": "connect ECONNREFUSED XXX.XXX.XXX.XXX:40871", "trace": "Error: connect…
BilalZ
  • 21
  • 1
  • 4
1
vote
0 answers

Type 'Agent | ((parsedUrl: URL) => Agent) | undefined' is not assignable to type 'Agent | undefined'

I'm receiving this error during a build command of next.js commerce. Type error: Argument of type '{ method: string; headers: { 'Content-Type': string; } | { 'Content-Type': string; } | { 'Content-Type': string; length: number; toString(): string;…
Ryan
  • 414
  • 1
  • 6
  • 16
1
vote
1 answer

https-proxy-agent upgraded to 3.0.0 but npm audit still showing not fixed

As of October 18, 2019, with a fix provided for NPM package https-proxy-agent, even after upgrading to the latest version, the audit warning still shows as 6 high vulnerabilities. Running npm audit fix doesn't resolve or remove the warnings, neither…
James Martin
  • 124
  • 1
  • 7
1
vote
1 answer

How use proxyAgent only in development env

I´m currently forced to comment or uncomment a single line in my request object, depending if my application currently run my local system or the productive server. I already tried to solve this problem with a bool variable, but it does not work.…
BayLife
  • 339
  • 4
  • 17
1
vote
1 answer

How to bypass the proxy in the mikrotik?

My Internet provider has proxy settings and when connected to the device comes out the same settings. I want the device to getout the Internet without a proxy. Example i want to be;- ==[Internet Source with Proxy]=> Mikrotik device =[internet…
1
vote
1 answer

Node.js http module doesn't receive WS request (using https-proxy-agent)

The concept is simple, creating a http server that forward websocket request to another port. Here is the code on my server side: http.createServer(onRequest).listen(9999); function onRequest(request, response) { console.log(request); …
Aero Wang
  • 8,382
  • 14
  • 63
  • 99
1
vote
1 answer

what is https and http tunnel methods in proxy?

This image is ProxyDroid application and I saw some proxy soft wares like these one. I find some free servers for http method (http proxy the famous one) and find servers for socks 4 and 5 but I cant find any server that support https and http…
user8794024
1
vote
1 answer

Node.js - Communicating with just proxy server while making request over HTTPS

I am sending https requests using a proxy server. I want to pass certain information back and forth with only the proxy server (not passed to the destination server). This can be done easily with request headers when doing HTTP requests, but for…
Joel
  • 15,654
  • 5
  • 37
  • 60
0
votes
0 answers

Axios Proxy-Agent Node.js working on Win but not on Macos

Hello I have some weird issue, Ive copied file.js from windows to macos m1, and I can't figure out why it push this error: /Users/administrator/Desktop/NewbieCleanCode/4G_modems.js:40 httpAgent: new HttpProxyAgent(http://${proxy}), ^ TypeError:…
0
votes
0 answers

How to use user:pass HTTP proxies javascript with requests module

I am trying to do var HttpsProxyAgent = require('https-proxy-agent'); var thing = new HttpsProxyAgent('http://user:pass:ip:port'); const opts = { method: "GET", jar: this.cookieJar, gzip: true, agent:…
er21r21
  • 1
  • 3
1
2