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: thing
}
console.log('trying');
request('https://ipinfo.io', opts, (err, res, body) => {}
But it gives me no error, It doesn't even print "trying" that is after const opts. How do I fix this?