nightmare icon indicating copy to clipboard operation
nightmare copied to clipboard

socks5 with authentication not working.

Open Sarmad007 opened this issue 5 years ago • 2 comments

Sarmad007 avatar Aug 04 '19 13:08 Sarmad007

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/' }

Sarmad007 avatar Aug 04 '19 13:08 Sarmad007

Having same issue.

oorel4 avatar Jan 08 '21 23:01 oorel4