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

module "proxy-agent" does not work at all in nodejs 15, but works fine from nodejs 14 and below #35784

Open
l10r opened this issue Oct 24, 2020 · 0 comments

Comments

@l10r
Copy link

@l10r l10r commented Oct 24, 2020

Bug that occurs on v15.0.1 and v15.0.0 only.

uname -a:
Linux tested 5.8.0-25-generic #26-Ubuntu SMP Thu Oct 15 10:30:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

What steps will reproduce the bug?

Any attempt to use proxy-agent for doing a proxy request...
Code example:

const axios = require('axios');
const ProxyAgent = require('proxy-agent');
const theAgent = new ProxyAgent('socks5://127.0.0.1:9050/');

axios.get('https://example.com', { agent: { http: theAgent, https: theAgent } }).then(response => {
  console.log(response.statusCode, response.headers);
}).catch(error => {
  if (error.response) {
    console.log(error.response.statusCode, error.response.headers);
  } else {
    console.log(error);
  }
});

How often does it reproduce? Is there a required condition?

No, not at all just using v15.

What is the expected behavior?

For the agent to work properly, and proxy the request as it should be like in any other versions of nodejs.

What do you see instead?

Connection times out, or something like that, and the request would normally fail going through.

Additional information

On top of that I'm getting frequent crashes when I'm sending many requests on nodejs v14.14.0
FATAL ERROR: v8::FromJust Maybe value is Nothing. .....* SOME RANDOM STUFF GOES HERE * 11: 0x7f806de50609 [/lib/x86_64-linux-gnu/libpthread.so.0] 12: 0x7f806dd75293 clone [/lib/x86_64-linux-gnu/libc.so.6] Aborted (core dumped)
I'm getting this error pretty frequently in v14 so there's that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.