Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NordVPN Proxy and Netflix #20

Closed
mckraemer opened this issue May 28, 2020 · 6 comments
Closed

NordVPN Proxy and Netflix #20

mckraemer opened this issue May 28, 2020 · 6 comments

Comments

@mckraemer
Copy link

mckraemer commented May 28, 2020

Hi, you closed the other issue, it still doensn't work for me and never worked for me before.
I am trying to use this module with a NordVPN socks5 proxy. I can visit the login page without any issues. My Problem is when I enter the credentials and press login I get the error: (failed)net::ERR_FAILED
Only the login fails for me.
The socks5 connection seems to work as ipleak.net gives me the proxy ip.
When I use the normal VPN client it works without any issues.

const puppeteer = require('puppeteer');
const useProxy = require('puppeteer-page-proxy');


const browser = await puppeteer.launch({
        headless: config.headless
    })  
const page = await browser.newPage();
await useProxy(page, 'socks5://${vpnusername}:${vpnpassword}@de550.nordvpn.com:1080')

await page.goto('https://www.netflix.com/en/Login')
@mckraemer mckraemer changed the title NordVPN Proxy NordVPN Proxy and Netflix May 28, 2020
@Cuadrix
Copy link
Owner

Cuadrix commented May 28, 2020

So it only happens after submitting the login details in the page?
Does it happen elsewhere?
What node, chrome and puppeteer versions are you using?

@mckraemer
Copy link
Author

Yes it only happens after submitting the login details.
I have only tried it with Netflix, can try it with Tidal later.
Puppeteer: 3.1.0
Node: 12.17.0
Chromium: 83.0.4103.0

@mckraemer
Copy link
Author

mckraemer commented May 29, 2020

Can't login to tidal either because I can't finish the recaptach. No idea why. Netflix is using recaptacha as well.

@Cuadrix
Copy link
Owner

Cuadrix commented May 30, 2020

This must be an issue with the requests. Something with missing headers or perhaps form data not being sent properly. I'll see what I can do

@t1nky
Copy link

t1nky commented Jun 3, 2020

Same error using proxy and trying to access instagram.

(node:11788) UnhandledPromiseRejectionWarning: ReadError: The server aborted the pending request
    at PassThrough.<anonymous> (c:\Users\user\Desktop\Puppy\node_modules\got\dist\source\core\index.js:675:31)
    at Object.onceWrapper (events.js:416:28)
    at PassThrough.emit (events.js:310:20)
    at IncomingMessage.<anonymous> (c:\Users\user\Desktop\Puppy\node_modules\decompress-response\node_modules\mimic-response\index.js:59:12)
    at Object.onceWrapper (events.js:416:28)
    at IncomingMessage.emit (events.js:310:20)
    at IncomingMessage.origin.emit (c:\Users\user\Desktop\Puppy\node_modules\@szmarczak\http-timer\dist\source\index.js:39:20)
    at TLSSocket.socketCloseListener (_http_client.js:383:11)
    at TLSSocket.emit (events.js:322:22)
    at net.js:672:12
Error: net::ERR_FAILED at https://www.instagram.com/

Using http proxy with authentication:

  1. Use puppeteer-page-proxy -- results in an error
  2. Use same proxy directly in Windows or Android -- OK
  3. Use another proxy in puppeteer-page-proxy -- OK
    All proxies I am using are HTTP(s).

This might be the cause (not 100% sure): sindresorhus/got#1295

@Cuadrix
Copy link
Owner

Cuadrix commented Jun 18, 2020

Updated. Try and see if the issue persists on 1.2.6

@Cuadrix Cuadrix closed this as completed Jun 18, 2020
@Cuadrix Cuadrix reopened this Jun 18, 2020
@Cuadrix Cuadrix closed this as completed Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants