testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

Add support of socks5 proxy with and without auth

Open gtroshin opened this issue 8 years ago • 5 comments

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:

gtroshin avatar May 14 '18 14:05 gtroshin

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.

stale[bot] avatar Oct 20 '20 11:10 stale[bot]

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.

stale[bot] avatar Oct 30 '20 12:10 stale[bot]

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:. I used the --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:8118 was successful
  • npx testcafe chrome tests/mytests.js --proxy http://localhost:8118 was unsuccessful
  • npx testcafe chrome tests/mytests.js --proxy http://127.0.0.1:8118 was unsuccessful
  • npx testcafe chrome tests/mytests.js --proxy-url localhost:8118 Could not connect to the baseUrl (403)
  • npx testcafe chrome tests/mytests.js --proxy-url http://localhost:8118 Could not connect to the baseUrl (403)

tsboom avatar Mar 16 '23 16:03 tsboom

Hi @tsboom,

Thank you for sharing this information. Since the issue is still actual, I will reopen it.

miherlosev avatar Mar 20 '23 07:03 miherlosev

In order to keep our backlog actual, we decided not to implement this feature since its user demand is insufficient.

AlexKamaev avatar Aug 07 '23 06:08 AlexKamaev