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

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

Closed
Santino0910 opened this issue Aug 17, 2023 · 18 comments
Assignees
Labels
bug Something isn't working

Comments

@Santino0910
Copy link

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.

@Santino0910 Santino0910 added the bug Something isn't working label Aug 17, 2023
@jlplenio
Copy link
Owner

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.

@squeaks1811
Copy link

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

@jlplenio
Copy link
Owner

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

@squeaks1811
Copy link

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

whats the mail?

@Dubzie
Copy link

Dubzie commented Sep 9, 2023

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.

@teletoobies
Copy link

teletoobies commented Sep 9, 2023

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

@jlplenio
Copy link
Owner

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.

@AnumalyFuan
Copy link

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
Copy link

Dubzie commented Sep 19, 2023

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
Copy link

Dubzie commented Sep 20, 2023

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

@reymaster370
Copy link

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.

@jlplenio
Copy link
Owner

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?

@reymaster370
Copy link

reymaster370 commented Sep 24, 2023

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.

@jlplenio
Copy link
Owner

jlplenio commented Sep 24, 2023

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
Copy link

Dubzie commented Sep 25, 2023

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

In the background, the stream is playing.

@reymaster370
Copy link

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.

@reymaster370
Copy link

reymaster370 commented Sep 25, 2023

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?

@jlplenio
Copy link
Owner

jlplenio commented Oct 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants