rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.21k stars 351 forks source link

Connections errors and problem in name resolution? #603

Open KamuiX opened 2 days ago

KamuiX commented 2 days ago

Describe the bug

Miner is installed using the python venv method. Everything worked perfectly since 1-2 days ago but since today I am getting errors like the below.

ERROR - [send_minute_watched_events]: Error while trying to send minute watched: HTTPSConnectionPool(host='video-weaver.lhr08.hls.ttvnw.net', port=443): Max retries exceeded with url: ... (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f145af83bb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution 

ERROR - [update_client_version]: Error with update_client_version: HTTPSConnectionPool(host='www.twitch.tv', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f145afc8280>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')
dig video-weaver.lhr08.hls.ttvnw.net

; <<>> DiG 9.18.28-0ubuntu0.22.04.1-Ubuntu <<>> video-weaver.lhr08.hls.ttvnw.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32345
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;video-weaver.lhr08.hls.ttvnw.net. IN   A

;; ANSWER SECTION:
video-weaver.lhr08.hls.ttvnw.net. 2020 IN A     99.181.79.18

;; Query time: 3 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Thu Oct 03 22:39:19 EEST 2024
;; MSG SIZE  rcvd: 77

Steps to reproduce

Just start the service

Expected behavior

get no errors :P

Operating system

Ubuntu 22.04

Python version

3.10.12

Miner version

1.9.7

Other relevant software versions

No response

Logs

https://gist.github.com/KamuiX/98e0b6d2d9f8de0d5aae406a1aebdf2b

Additional context

No response

KamuiX commented 2 days ago

Because of the ERROR - [update_client_version], 2 things got in my mind chrome (which I think the miner uses), or some python web client

I updated the chrome from v108 to v129 although this didn't help.

Next though maybe urllib3 is old so I executed pip install -r requirements.txt --upgrade in the virtual environment (opposed to just pip install -r requirements.txt). Indeed some packages got updated like pillow, python-dateutil,emoji,pre-commit,colorama,flask,irc,pandas,pytz,validators... websocket-client and requests

Currently all ERROR messages disappeared yoohoo! I will keep the bug open for some hours so be sure that this indeed solved the problem. Maybe pip install -r requirements.txt --upgrade need to be added in the README manual.

KamuiX commented 21 hours ago

It seems that the errors persist even after all the above updates. The miner still works ok but the logs are filled with the

 ERROR - [send_minute_watched_events]: Error while trying to send minute watched: HTTPSConnectionPool(host='amethyst.chanteney.cloudfront.hls.ttvnw.net', port=443): Max retries exceeded with url: ...

  ERROR - [update_client_version]: Error with update_client_version: HTTPSConnectionPool(host='www.twitch.tv', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f1f43e429b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))