Open Sarmad007 opened 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/' }
Having same issue.
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/' }