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

ERR_TUNNEL_CONNECTION_FAILED #63

Closed
wsoulless opened this issue Nov 24, 2022 · 6 comments
Closed

ERR_TUNNEL_CONNECTION_FAILED #63

wsoulless opened this issue Nov 24, 2022 · 6 comments
Assignees

Comments

@wsoulless
Copy link

Desktop (please complete the following information):

  • CTVB version: 0.3.1
  • Windows version: 10

Describe the bug
I'm using the 10 proxies from webshare.
All looks good but when I open any istance I got an error (see log details).

logs

Traceback (most recent call last):
File "instance.py", line 87, in start
File "instance.py", line 161, in spawn_page
File "playwright\sync_api_generated.py", line 8114, in goto
File "playwright_impl_sync_base.py", line 104, in _sync
File "playwright_impl_page.py", line 495, in goto
File "playwright_impl_frame.py", line 146, in goto
File "playwright_impl_connection.py", line 43, in send
File "playwright_impl_connection.py", line 396, in wrap_api_call
File "playwright_impl_connection.py", line 78, in inner_send
playwright._impl._api_types.Error: net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"

@jlplenio
Copy link

jlplenio commented Nov 24, 2022

Hmm. That is a rare one. Can you:

  1. Try without proxies, i.e. an empty proxy_list.txt. Does it work?
  2. Try to update your Chrome browser to the newest version.
  3. Check at the beginning of the log, if your instances "take" the correct proxies, e.g.:
    INFO;Thread-2;instance;spawn_page; STARTING instance 1, proxy http://123.345.678.213:6998 <--

@b31ver
Copy link

b31ver commented Nov 28, 2022

same problem

@jlplenio
Copy link

same problem

Please follow the steps above so I can diagnose the problem.

@wsoulless
Copy link
Author

wsoulless commented Nov 28, 2022

same problem

Please follow the steps above so I can diagnose the problem.

Without proxies I believe it works? Or at least the chrome sessions stays alive and it doesn't shut down after few seconds.
Anyway today is working a little bit better even if I still don't know why some istance crashes right after 3 seconds you spawn them.

Log without proxies (3 istances):

2022-11-28 19:38:38,892;INFO;MainThread;manager;init; Manager start
2022-11-28 19:38:46,368;INFO;Thread-2;manager;spawn_instance_thread; <Thread(Thread-2, started 10668)> starting instance no 1
2022-11-28 19:38:46,368;INFO;Thread-2;instance;spawn_page; STARTING:<Thread(Thread-2, started 10668)> instance 1, proxy no proxy
2022-11-28 19:38:48,374;INFO;Thread-3;manager;spawn_instance_thread; <Thread(Thread-3, started 10972)> starting instance no 2
2022-11-28 19:38:48,374;INFO;Thread-3;instance;spawn_page; STARTING:<Thread(Thread-3, started 10972)> instance 2, proxy no proxy
2022-11-28 19:38:50,376;INFO;Thread-4;manager;spawn_instance_thread; <Thread(Thread-4, started 48132)> starting instance no 3
2022-11-28 19:38:50,376;INFO;Thread-4;instance;spawn_page; STARTING:<Thread(Thread-4, started 48132)> instance 3, proxy no proxy
2022-11-28 19:38:52,725;INFO;Thread-2;instance;spawn_page; STARTED:<Thread(Thread-2, started 10668)> instance 1, proxy no proxy
2022-11-28 19:38:55,216;INFO;Thread-3;instance;spawn_page; STARTED:<Thread(Thread-3, started 10972)> instance 2, proxy no proxy
2022-11-28 19:38:56,828;INFO;Thread-4;instance;spawn_page; STARTED:<Thread(Thread-4, started 48132)> instance 3, proxy no proxy
2022-11-28 19:39:03,280;INFO;ThreadPoolExecutor-0_0;manager;delete_latest; Issuing shutdown of instance #3
2022-11-28 19:39:03,280;INFO;ThreadPoolExecutor-0_1;manager;delete_latest; Issuing shutdown of instance #2
2022-11-28 19:39:03,280;INFO;ThreadPoolExecutor-0_2;manager;delete_latest; Issuing shutdown of instance #1
2022-11-28 19:39:05,270;INFO;Thread-3;instance;start; <Thread(Thread-3, started 10972)> with instance no 2 ended gracefully
2022-11-28 19:39:06,881;INFO;Thread-4;instance;start; <Thread(Thread-4, started 48132)> with instance no 3 ended gracefully
2022-11-28 19:39:07,781;INFO;Thread-2;instance;start; <Thread(Thread-2, started 10668)> with instance no 1 ended gracefully

Log with proxies (the 10 free private proxies from webshare):

2022-11-28 19:41:39,798;INFO;MainThread;manager;init; Manager start
2022-11-28 19:41:45,568;INFO;Thread-2;manager;spawn_instance_thread; <Thread(Thread-2, started 11676)> starting instance no 1
2022-11-28 19:41:45,568;INFO;Thread-2;instance;spawn_page; STARTING:<Thread(Thread-2, started 11676)> instance 1, proxy http://188.74.183.10:8279
2022-11-28 19:41:47,577;INFO;Thread-3;manager;spawn_instance_thread; <Thread(Thread-3, started 25300)> starting instance no 2
2022-11-28 19:41:47,577;INFO;Thread-3;instance;spawn_page; STARTING:<Thread(Thread-3, started 25300)> instance 2, proxy http://185.199.229.156:7492
2022-11-28 19:41:49,590;INFO;Thread-4;manager;spawn_instance_thread; <Thread(Thread-4, started 49516)> starting instance no 3
2022-11-28 19:41:49,607;INFO;Thread-4;instance;spawn_page; STARTING:<Thread(Thread-4, started 49516)> instance 3, proxy http://45.94.47.66:8110
2022-11-28 19:41:56,044;INFO;Thread-2;instance;spawn_page; STARTED:<Thread(Thread-2, started 11676)> instance 1, proxy http://188.74.183.10:8279
2022-11-28 19:41:58,336;INFO;Thread-6;manager;spawn_instance_thread; <Thread(Thread-6, started 24740)> starting instance no 4
2022-11-28 19:41:58,337;INFO;Thread-6;instance;spawn_page; STARTING:<Thread(Thread-6, started 24740)> instance 4, proxy http://185.199.231.45:8382
2022-11-28 19:41:58,892;INFO;Thread-3;instance;spawn_page; STARTED:<Thread(Thread-3, started 25300)> instance 2, proxy http://185.199.229.156:7492
2022-11-28 19:42:00,342;INFO;Thread-7;manager;spawn_instance_thread; <Thread(Thread-7, started 22824)> starting instance no 5
2022-11-28 19:42:00,342;INFO;Thread-7;instance;spawn_page; STARTING:<Thread(Thread-7, started 22824)> instance 5, proxy http://185.199.228.220:7300
2022-11-28 19:42:02,353;INFO;Thread-8;manager;spawn_instance_thread; <Thread(Thread-8, started 51796)> starting instance no 6
2022-11-28 19:42:02,353;INFO;Thread-8;instance;spawn_page; STARTING:<Thread(Thread-8, started 51796)> instance 6, proxy http://45.155.68.129:8133
2022-11-28 19:42:07,364;WARNING;Thread-4;instance;spawn_page; Cookie consent banner not found/clicked.
2022-11-28 19:42:07,680;INFO;Thread-10;manager;spawn_instance_thread; <Thread(Thread-10, started 32840)> starting instance no 7
2022-11-28 19:42:07,680;INFO;Thread-10;instance;spawn_page; STARTING:<Thread(Thread-10, started 32840)> instance 7, proxy http://188.74.210.21:6100
2022-11-28 19:42:08,037;INFO;Thread-6;instance;spawn_page; STARTED:<Thread(Thread-6, started 24740)> instance 4, proxy http://185.199.231.45:8382
2022-11-28 19:42:08,900;ERROR;Thread-10;instance;start; net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
Traceback (most recent call last):
File "instance.py", line 87, in start
File "instance.py", line 161, in spawn_page
File "playwright\sync_api_generated.py", line 8114, in goto
File "playwright_impl_sync_base.py", line 104, in _sync
File "playwright_impl_page.py", line 495, in goto
File "playwright_impl_frame.py", line 146, in goto
File "playwright_impl_connection.py", line 43, in send
File "playwright_impl_connection.py", line 396, in wrap_api_call
File "playwright_impl_connection.py", line 78, in inner_send
playwright._impl._api_types.Error: net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
2022-11-28 19:42:09,057;INFO;Thread-12;manager;spawn_instance_thread; <Thread(Thread-12, started 14040)> starting instance no 7
2022-11-28 19:42:09,057;INFO;Thread-12;instance;spawn_page; STARTING:<Thread(Thread-12, started 14040)> instance 7, proxy http://154.95.36.199:6893
2022-11-28 19:42:09,681;INFO;Thread-13;manager;spawn_instance_thread; <Thread(Thread-13, started 17468)> starting instance no 8
2022-11-28 19:42:09,681;INFO;Thread-13;instance;spawn_page; STARTING:<Thread(Thread-13, started 17468)> instance 8, proxy http://188.74.210.207:6286
2022-11-28 19:42:10,981;INFO;Thread-4;instance;spawn_page; STARTED:<Thread(Thread-4, started 49516)> instance 3, proxy http://45.94.47.66:8110
2022-11-28 19:42:11,104;ERROR;Thread-13;instance;start; net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
Traceback (most recent call last):
File "instance.py", line 87, in start
File "instance.py", line 161, in spawn_page
File "playwright\sync_api_generated.py", line 8114, in goto
File "playwright_impl_sync_base.py", line 104, in _sync
File "playwright_impl_page.py", line 495, in goto
File "playwright_impl_frame.py", line 146, in goto
File "playwright_impl_connection.py", line 43, in send
File "playwright_impl_connection.py", line 396, in wrap_api_call
File "playwright_impl_connection.py", line 78, in inner_send
playwright._impl._api_types.Error: net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
2022-11-28 19:42:11,688;INFO;Thread-14;manager;spawn_instance_thread; <Thread(Thread-14, started 29584)> starting instance no 8
2022-11-28 19:42:11,688;INFO;Thread-14;instance;spawn_page; STARTING:<Thread(Thread-14, started 29584)> instance 8, proxy http://144.168.217.88:8780
2022-11-28 19:42:17,045;WARNING;Thread-7;instance;spawn_page; Cookie consent banner not found/clicked.
2022-11-28 19:42:20,507;WARNING;Thread-8;instance;spawn_page; Cookie consent banner not found/clicked.
2022-11-28 19:42:20,658;INFO;Thread-12;instance;spawn_page; STARTED:<Thread(Thread-12, started 14040)> instance 7, proxy http://154.95.36.199:6893
2022-11-28 19:42:24,492;INFO;Thread-8;instance;spawn_page; STARTED:<Thread(Thread-8, started 51796)> instance 6, proxy http://45.155.68.129:8133
2022-11-28 19:42:32,233;WARNING;Thread-14;instance;spawn_page; Cookie consent banner not found/clicked.
2022-11-28 19:42:33,576;ERROR;Thread-7;instance;start; Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for selector ".persistent-player" to be visible
============================================================
Traceback (most recent call last):
File "instance.py", line 87, in start
File "instance.py", line 189, in spawn_page
File "playwright\sync_api_generated.py", line 7265, in wait_for_selector
File "playwright_impl_sync_base.py", line 104, in _sync
File "playwright_impl_page.py", line 368, in wait_for_selector
File "playwright_impl_frame.py", line 317, in wait_for_selector
File "playwright_impl_connection.py", line 43, in send
File "playwright_impl_connection.py", line 396, in wrap_api_call
File "playwright_impl_connection.py", line 78, in inner_send
playwright._impl._api_types.TimeoutError: Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for selector ".persistent-player" to be visible
============================================================
2022-11-28 19:42:37,187;INFO;Thread-14;instance;spawn_page; STARTED:<Thread(Thread-14, started 29584)> instance 8, proxy http://144.168.217.88:8780
2022-11-28 19:42:45,113;INFO;Thread-16;manager;spawn_instance_thread; <Thread(Thread-16, started 42848)> starting instance no 9
2022-11-28 19:42:45,113;INFO;Thread-16;instance;spawn_page; STARTING:<Thread(Thread-16, started 42848)> instance 9, proxy http://188.74.183.10:8279
2022-11-28 19:42:46,809;INFO;Thread-18;manager;spawn_instance_thread; <Thread(Thread-18, started 42724)> starting instance no 10
2022-11-28 19:42:46,809;INFO;Thread-18;instance;spawn_page; STARTING:<Thread(Thread-18, started 42724)> instance 10, proxy http://185.199.229.156:7492
2022-11-28 19:42:47,838;ERROR;Thread-18;instance;start; net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
Traceback (most recent call last):
File "instance.py", line 87, in start
File "instance.py", line 161, in spawn_page
File "playwright\sync_api_generated.py", line 8114, in goto
File "playwright_impl_sync_base.py", line 104, in _sync
File "playwright_impl_page.py", line 495, in goto
File "playwright_impl_frame.py", line 146, in goto
File "playwright_impl_connection.py", line 43, in send
File "playwright_impl_connection.py", line 396, in wrap_api_call
File "playwright_impl_connection.py", line 78, in inner_send
playwright._impl._api_types.Error: net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
2022-11-28 19:42:48,361;INFO;Thread-20;manager;spawn_instance_thread; <Thread(Thread-20, started 36952)> starting instance no 10
2022-11-28 19:42:48,361;INFO;Thread-20;instance;spawn_page; STARTING:<Thread(Thread-20, started 36952)> instance 10, proxy http://45.94.47.66:8110
2022-11-28 19:42:54,758;INFO;Thread-16;instance;spawn_page; STARTED:<Thread(Thread-16, started 42848)> instance 9, proxy http://188.74.183.10:8279
2022-11-28 19:42:55,385;INFO;Thread-22;manager;spawn_instance_thread; <Thread(Thread-22, started 46828)> starting instance no 11
2022-11-28 19:42:55,385;INFO;Thread-22;instance;spawn_page; STARTING:<Thread(Thread-22, started 46828)> instance 11, proxy http://185.199.231.45:8382

EDIT:
Right now, for example, is totaly unstable.
I can try to open 1 or 50 istance, none of them will keep it up, attach log:

2022-11-28 20:37:34,432;INFO;MainThread;manager;init; Manager start
2022-11-28 20:37:36,925;INFO;Thread-2;manager;spawn_instance_thread; <Thread(Thread-2, started 1928)> starting instance no 1
2022-11-28 20:37:36,925;INFO;Thread-2;instance;spawn_page; STARTING:<Thread(Thread-2, started 1928)> instance 1, proxy http://144.168.217.88:8780
2022-11-28 20:37:38,886;ERROR;Thread-2;instance;start; net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
Traceback (most recent call last):
File "instance.py", line 87, in start
File "instance.py", line 161, in spawn_page
File "playwright\sync_api_generated.py", line 8114, in goto
File "playwright_impl_sync_base.py", line 104, in _sync
File "playwright_impl_page.py", line 495, in goto
File "playwright_impl_frame.py", line 146, in goto
File "playwright_impl_connection.py", line 43, in send
File "playwright_impl_connection.py", line 396, in wrap_api_call
File "playwright_impl_connection.py", line 78, in inner_send
playwright._impl._api_types.Error: net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
2022-11-28 20:37:38,939;INFO;Thread-3;manager;spawn_instance_thread; <Thread(Thread-3, started 14164)> starting instance no 2
2022-11-28 20:37:38,939;INFO;Thread-3;instance;spawn_page; STARTING:<Thread(Thread-3, started 14164)> instance 2, proxy http://154.95.36.199:6893
2022-11-28 20:37:40,403;ERROR;Thread-3;instance;start; net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
Traceback (most recent call last):
File "instance.py", line 87, in start
File "instance.py", line 161, in spawn_page
File "playwright\sync_api_generated.py", line 8114, in goto
File "playwright_impl_sync_base.py", line 104, in _sync
File "playwright_impl_page.py", line 495, in goto
File "playwright_impl_frame.py", line 146, in goto
File "playwright_impl_connection.py", line 43, in send
File "playwright_impl_connection.py", line 396, in wrap_api_call
File "playwright_impl_connection.py", line 78, in inner_send
playwright._impl._api_types.Error: net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
2022-11-28 20:37:40,953;INFO;Thread-4;manager;spawn_instance_thread; <Thread(Thread-4, started 23988)> starting instance no 1
2022-11-28 20:37:40,953;INFO;Thread-4;instance;spawn_page; STARTING:<Thread(Thread-4, started 23988)> instance 1, proxy http://188.74.183.10:8279
2022-11-28 20:37:42,504;ERROR;Thread-4;instance;start; net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================
Traceback (most recent call last):
File "instance.py", line 87, in start
File "instance.py", line 161, in spawn_page
File "playwright\sync_api_generated.py", line 8114, in goto
File "playwright_impl_sync_base.py", line 104, in _sync
File "playwright_impl_page.py", line 495, in goto
File "playwright_impl_frame.py", line 146, in goto
File "playwright_impl_connection.py", line 43, in send
File "playwright_impl_connection.py", line 396, in wrap_api_call
File "playwright_impl_connection.py", line 78, in inner_send
playwright._impl._api_types.Error: net::ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/login
=========================== logs ===========================
navigating to "https://www.twitch.tv/login", waiting until "load"
============================================================

@alexferra
Copy link

same issue

@jlplenio
Copy link

Can you check for errors in webshare.io.
Maybe the free proxies of webshare have a concurrency limit, which you are hitting.
grafik

@jlplenio jlplenio closed this as completed Dec 4, 2022
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

4 participants