I keep getting the following error when making requests through socks proxies : SocksClientError: An invalid destination host was provided.
My request looks like this :
const ProxyAgent = require('simple-proxy-agent');
// p is a proxy that looks like 'socks://79.xxx.xx.xxx:4153'
const res = await needle('get', 'https://google.com', {
agent: new ProxyAgent(p),
follow: 10,
response_timeout: 10000,
read_timeout: 5000,
}).catch(e => e);
I keep getting the following error when making requests through socks proxies :
SocksClientError: An invalid destination host was provided.
My request looks like this :
Any ideas on why this could be happening ?