segment-boneyard / nightmare

A high-level browser automation library.
https://open.segment.com
19.54k stars 1.08k forks source link

socks5 with authentication not working. #1563

Open Sarmad007 opened 5 years ago

Sarmad007 commented 5 years ago

var nightmare = Nightmare({ show: true, gotoTimeout: 30000, switches: { 'proxy-server': 'socks5://' + proxyHost + ':' + proxyPort, }, waitTimeout: 400000 }) nightmare .authentication("uname","pass") .goto('http://whatsmyip.com') .evaluate(() => document.querySelector('.ip').textContent) .end() .then(ip => console.log(ip)) .catch(error => console.error('oops', error)); }); Error against it is: code: -120, details: 'ERR_SOCKS_CONNECTION_FAILED', url: 'http://whatsmyip.com/' }

oorel4 commented 3 years ago

Having same issue.