Add support of socks5 proxy with and without auth
Are you requesting a feature or reporting a bug?
A feature.
What is the current behavior?
When I pass socks5 host and port (with or without simple login/password auth) it fails with
-
- Error in fixture.beforeEach hook - Failed to connect to the proxy. Cannot establish tunneling connection to the host at "...".
What is the expected behavior?
Should works
How would you reproduce the current behavior (if this is a bug)?
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
Specify your
- operating system:
- testcafe version:
- node.js version:
This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.
We're closing this issue after a prolonged period of inactivity. If it still affects you, please create a new issue with up-to-date information. Thank you.
I ran into the same issue with my corporate socks5 proxy. I was able to get around this by using Privoxy web proxy with socks5 support to forward traffic from the default Privoxy port localhost:8118 to the socks5 proxy at 127.0.0.1:--proxy localhost:8118 option in Testcafe CLI.
I think that native socks5 proxy support within --proxy and '--proxy-url' would be helpful for other TestCafe users in the same boat with needing to use Socks5 proxies.
Some things to note:
npx testcafe chrome tests/mytests.js --proxy localhost:8118was successfulnpx testcafe chrome tests/mytests.js --proxy http://localhost:8118was unsuccessfulnpx testcafe chrome tests/mytests.js --proxy http://127.0.0.1:8118was unsuccessfulnpx testcafe chrome tests/mytests.js --proxy-url localhost:8118Could not connect to the baseUrl (403)npx testcafe chrome tests/mytests.js --proxy-url http://localhost:8118Could not connect to the baseUrl (403)
Hi @tsboom,
Thank you for sharing this information. Since the issue is still actual, I will reopen it.
In order to keep our backlog actual, we decided not to implement this feature since its user demand is insufficient.