Giter Site home page Giter Site logo

Comments (7)

gregghawes avatar gregghawes commented on September 15, 2024 1

For anyone else getting this issue, you need to add an outbound rule for ports 20000-60000 in windows defender.

from proxy-chain.

jancurn avatar jancurn commented on September 15, 2024

That's really strange, are you running many createSimpleProxy() calls in parallel? I'm guessing maybe two calls tried to use the same port number and had a collision. The server is using the findFreePort() function to find a free port, which is quite straightfoward:

https://github.com/apifytech/proxy-chain/blob/master/src/tools.js#L198

from proxy-chain.

therepo90 avatar therepo90 commented on September 15, 2024

No, the above code is the only code I run

test.js:

const {createSimpleProxy} = require('./proxy.js');

createSimpleProxy();

from proxy-chain.

jancurn avatar jancurn commented on September 15, 2024

The only thing I can think of is some bug in the https://www.npmjs.com/package/portastic package. We can try to replace it with e.g. https://www.npmjs.com/package/portfinder and see if that helps. However, I'm not sure when we'll find time to do this.

As a quick workaround, I'd recommend looking at the code of anonymizeProxy function, making your own local version, and replace findFreePort() call with a random or fixed port number that you know it's free

from proxy-chain.

therepo90 avatar therepo90 commented on September 15, 2024

Okay lets close it. I've managed to use the example with
Run a HTTP/HTTPS proxy server with credentials and upstream proxy
Thanks for this tool anyway

from proxy-chain.

jancurn avatar jancurn commented on September 15, 2024

Great, I'm glad to hear you were able to make it work. Closing this now

from proxy-chain.

metalwarrior665 avatar metalwarrior665 commented on September 15, 2024

I hope portastic will fix this one day, it is pretty annoying with Puppeteer, spamming the log.

from proxy-chain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.