KevinBytesTheDust/CVAmp

TWITCH Instance 12 died: Error:net::ERR_TUNNEL_CONNECTIO... Please see ctvbot.log.

Closed this issue · 18 comments

Please answer the following questions:

  • CTVBot version? 0.6.1
  • OS with version? Windows 11
  • Streaming platform? twitch.tv,
  • Proxies from webshare.io? yes, private proxy

Describe the bug
I can't get past 12 or 15 instances that start to die

Logs
TWITCH Instance 12 died: Error:net::ERR_TUNNEL_CONNECTIO... Please see ctvbot.log.

Hey @Santino0910.
The ERR_TUNNEL_CONNECTION_FAILED error indicates that there is a problem with your proxies.
Maybe it reached the maximum traffic or bandwidth or threads/concurrency.

You can always test with an empty proxy_list.txt whether the general function works.

im getting the exact same thing but none of mine work and i just purchased the 100 proxies from the website recommended

hey @squeaks1811, please send me your logs via mail and I will look into it. Webshare proxies should always work!

hey @squeaks1811, please send me your logs via mail and I will look into it. Webshare proxies should always work!

whats the mail?

Dubzie commented

I'm getting the same issue, with Webshare proxies, same proxy's work in another app.

=========================== logs =========================== navigating to "https://www.twitch.tv/xxxxxxxxx", waiting until "load" ============================================================ died at page https://www.twitch.tv/xxxxxxx Traceback (most recent call last): File "ctvbot\instance.py", line 82, in start File "ctvbot\sites.py", line 220, in todo_after_spawn File "ctvbot\instance.py", line 156, in goto_with_retry File "playwright\sync_api\_generated.py", line 9293, in goto File "playwright\_impl\_sync_base.py", line 109, in _sync File "playwright\_impl\_page.py", line 479, in goto File "playwright\_impl\_frame.py", line 147, in goto File "playwright\_impl\_connection.py", line 61, in send File "playwright\_impl\_connection.py", line 482, in wrap_api_call File "playwright\_impl\_connection.py", line 97, in inner_send playwright._impl._api_types.TimeoutError: Timeout 20000ms exceeded.

I'm getting the same issue, with Webshare proxies, same proxy's work in another app."
What another application are you using?

Hello @Dubzie. TimeoutError could indicate that either your system or traffic are at capacity.
On how many instances does this error occur, and what is your CPU/RAM at that time?
If the stream you are watching only allows for source quality, e.g., 1080p60, this also eats a lot of traffic.
This could max out your home internet bandwidth and or the bandwidth/concurrency from the proxy package.

hello, i get the same issue. it was working really fine used 10 instances smoothly. but suddenly all the instances died and now i can't even use 1 instance

Dubzie commented

Hello @Dubzie. TimeoutError could indicate that either your system or traffic are at capacity. On how many instances does this error occur, and what is your CPU/RAM at that time? If the stream you are watching only allows for source quality, e.g., 1080p60, this also eats a lot of traffic. This could max out your home internet bandwidth and or the bandwidth/concurrency from the proxy package.

That is definitely not the case, I can use those same proxies in a different viewer bot without issue, this one seems to struggle even keeping one connection.
It was working fine for a while then just stopped.

Dubzie commented

When I uncheck headless, twitch prompts something about cookies, which i cant click on because the screen gets resized

When I uncheck headless, twitch prompts something about cookies, which i cant click on because the screen gets resized

I have the same issue. It seems the cookie notification won't allow you to watch the stream.

hey @Dubzie and @reymaster370. The cookie banner should not be a problem. If you zoom back via ctrl-, you should see the screen. Did you test with an empty proxy_list.txt whether the general function works?

hey @Dubzie and @reymaster370. The cookie banner should not be a problem. If you zoom back via ctrl-, you should see the screen. Did you test with an empty proxy_list.txt whether the general function works?

Hey Jlplenio, I tried it and it works. But I want to try the headless route. Sadly, when I do headless I get this message. TWITCH Instance 1 died: TimeoutError:Timeout 15000ms exceeded.... Please see ctvbot.log. Sometimes, the same thing happens when I do it without headless, and I think its because of the cookie banner.

Judging by your timeout, he fails here:
https://github.com/jlplenio/crude-twitch-viewer-bot/blob/8380c49fdeba680c202b124c789c72c7d0abaa03/ctvbot/sites.py#L222C1-L222C73

He does reach the desired website, but does not find the video player of Twitch? In headful mode, can you zoom back with ctrl and minus(-) to see beyond the cookie banner and check what page/step the instances dies on?

Dubzie commented

Even in headless and ctrl- it wont allow me to allow/click accept cookies

In the background, the stream is playing.

Judging by your timeout, he fails here: https://github.com/jlplenio/crude-twitch-viewer-bot/blob/8380c49fdeba680c202b124c789c72c7d0abaa03/ctvbot/sites.py#L222C1-L222C73

He does reach the desired website, but does not find the video player of Twitch? In headful mode, can you zoom back with ctrl and minus(-) to see beyond the cookie banner and check what page/step the instances dies on?

The player does not play at all for some reason.

Also, when you click cookie and accept it, nothing happens and the window reloads again. I tried it again and it shows the video now, but it still reloads non stop. Also, when the viewer has the mature audience sign, how does one click accept when it's headelss?

When Twitch suspects that you are not a real viewer, your actions are restricted, e.g., you cannot accept the cookie banner and you cannot follow a stream. This is not a big deal because viewers are still counted. Why your player does not start, I do not know, sorry.