jlplenio / crude-twitch-viewer-bot

Send live viewers to Twitch, youtube and kick with this viewer bot software. The tool offers a user-friendly graphical interface. This program requires HTTP proxies.
GNU Affero General Public License v3.0
329 stars 91 forks source link

ERR_TUNNEL_CONNECTION_FAILED instant shutdown #115

Closed diegozalez closed 1 year ago

diegozalez commented 1 year ago

Describe the bug I have tried the tool and it worked nicely and suddenly instants just die, I bought the 25 proxies in webshare.io and it worked but a few hours later it doesn't work, I now lunch the program, and hit spawn and the instance lunches follow by closing telling me to read logs and all I see is "ERR_TUNNEL_CONNECTION_FAILED", I have checked the proxy IP port usr and psw.

Thanks for the amazing tool hope i can make it work.

logs 2023-04-08 19:08:24,732;INFO;69_63;MainThread;manager;init;Manager start 2023-04-08 19:08:27,895;INFO;20_63;Thread-2;manager;spawn_instance_thread;Ordered instance 1, Thread-2, proxy http://185.195.62.138:6226 2023-04-08 19:08:27,895;INFO;0_63;Thread-2;manager;instance_status_report_callback;STARTING instance 1 2023-04-08 19:08:27,896;INFO;0_63;Thread-2;service;start;Restarter enabled. 2023-04-08 19:08:29,708;ERROR;52_63;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 "ctvbot\instance.py", line 105, in start File "ctvbot\instance.py", line 175, 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"

diegozalez commented 1 year ago

I have also tried without the proxy and it works.

diegozalez commented 1 year ago

I don't have High Concurrency but im only using 15 max

diegozalez commented 1 year ago

Okay the problem is that I reach the bandwidth limit of 250GB, it might be a problem is that I only stream in 1080p so I think they consume a lot. Can I fix this somehow ?

jlplenio commented 1 year ago

Good job on finding the solution on your own. CTVBot takes the lowest quality option available. I think that Twitch offers lower than source quality options based on overall server workload and streamer seniority. So check what quality option are available to find a time window to save proxy bandwidth. Or you have to increase your bandwidth limit.

May I ask how long, with how many instances and what quality option did it take to reach 250GB?

diegozalez commented 1 year ago

in my stream i only get the 1080p 60fps option, i think i had 13 instances and in only one night it reach the limit no more than 6h or 8h. i think with a bit of math we could calculate the exact time it takes.

jlplenio commented 1 year ago

True. If we assume that you stream at 6 Mbps, which equals to ~2.7 GB per hour: With 13 instances watching for 7 hours, you would reach 250 GB traffic almost perfectly. So, either you have to upgrade your proxy traffic or check if at some time more quality options are available.

diegozalez commented 1 year ago

image this is in more detail, I now have the lower quality options but this month I have unlimited so I don't care anymore :) for this month. by the way awesome tool, it's working very well, great job.