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

ECONNREFUSED #10

Open
shashvattrip opened this issue Aug 30, 2015 · 0 comments
Open

ECONNREFUSED #10

shashvattrip opened this issue Aug 30, 2015 · 0 comments

Comments

@shashvattrip
Copy link

Hey,

I am facing some issue with the module.

vents.js:85
      throw er; // Unhandled 'error' event
            ^
Error: connect ECONNREFUSED
    at exports._errnoException (util.js:746:11)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)

I am not sure how to proxy requests from nodejs to tor. I have tor running on my ubuntu and the browser running too with the tor-browser-en.sh
I am not sure about what options I need to pass into the requst

require('socks5-https-client').request({
        'url': url, 
        strictSSL: true,
    agentClass: Agent,
    agentOptions: {
        // socksHost: 'my-tor-proxy-host', // Defaults to 'localhost'.
        socksPort: 9050 // Defaults to 1080.
        }
    }, function (error, response, body) {
//something
});

Please help. Thanks!

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

1 participant