Technik-Tueftler / TwitchHenCommander

Collect the messages with a hashtag and tweet the hastags at the end of the stream
GNU General Public License v3.0
3 stars 0 forks source link

ConnectTimeout #44

Closed Technik-Tueftler closed 4 months ago

Technik-Tueftler commented 6 months ago

What

requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /helix/clips?broadcaster_id=206130928&started_at=2024-05-09T11:59:11Z&ended_at=2024-05-09T11:59:41Z (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f898c78d0>, 'Connection to api.twitch.tv timed out. (connect timeout=10)'))

Why

failure of the internet connection?

Technik-Tueftler commented 6 months ago

new connection timeout after 2 hours with:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /helix/clips?broadcaster_id=206130928&started_at=2024-05-10T17:08:14Z&ended_at=2024-05-10T17:08:44Z (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fa0060ad0>: Failed to resolve 'api.twitch.tv' ([Errno -2] Name or service not known)")) in urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /helix/clips?broadcaster_id=206130928&started_at=2024-05-10T17:08:14Z&ended_at=2024-05-10T17:08:44Z (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fa0060ad0>: Failed to resolve 'api.twitch.tv' ([Errno -2] Name or service not known)")) response = requests.get(fetch_url, headers=headers, timeout=REQUEST_TIMEOUT).json() File "/user/app/TwitchHenCommander/source/twitch_api.py", line 51, in fetch_new_clips