Comments (7)
For anyone else getting this issue, you need to add an outbound rule for ports 20000-60000 in windows defender.
from proxy-chain.
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.
No, the above code is the only code I run
test.js:
const {createSimpleProxy} = require('./proxy.js');
createSimpleProxy();
from proxy-chain.
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.
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.
Great, I'm glad to hear you were able to make it work. Closing this now
from proxy-chain.
I hope portastic will fix this one day, it is pretty annoying with Puppeteer, spamming the log.
from proxy-chain.
Related Issues (20)
- intercept local requests HOT 2
- Add suport for Bun runtime - Issue with `net.Socket.write` HOT 8
- proxy-chain and puppeteer in same process do not send username and password proxy-authorization HOT 1
- Consider binding HTTP server to a specific hostname HOT 1
- TimeoutError: Navigation timeout of 30000 ms exceeded HOT 9
- Proxy Authentication 407 HOT 3
- Proxy-chain never reconnect when get this error: "Failed to connect to upstream proxy: Error: socket hang up" HOT 5
- getting code 400 for upstream proxy HOT 1
- How do I self sign a request using my certs HOT 1
- Convert "GET" requests to "CONNECT"
- Proxy only certain requests HOT 1
- How to use dynamic upstream proxy pool?
- How to proxy HTTPS? HOT 5
- How to fix/retry on this error "The proxy responded with 590 UPSTREAM503" ? HOT 3
- How to create proxy_local socks5 to proxy_server socks5 HOT 1
- Forward mode blocks indefinitely upon certain content-disposition header value HOT 2
- proxy headers are using the array index as key HOT 3
- SOCKS Authentication fails for CONNECT if username contains special characters HOT 2
- Inconsistent HTTP Header Formatting Across Environments HOT 1
- ERR_TUNNEL_CONNECTION_FAILED error when executing with Bun HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxy-chain.