TimeoutError: [Errno 110] Connect call failed ('199.232.26.214', 443)"

Hello,

I am writing to bring to your attention an issue I am currently facing with multiple processes that utilize various API endpoints to retrieve data related to live streams on Twitch. These processes have been running continuously for over a year, adhering to all the limitations and rules specified in the API documentation. I would like to highlight that these tasks are executed within the AWS infrastructure.

Starting from early morning today, I have been consistently encountering the following error message across all my tasks:

687427237854,Traceback (most recent call last):
1687427237855," File “”/usr/local/lib/python3.9/site-packages/aiohttp/connector.py"“, line 986, in _wrap_create_connection”
1687427237855," return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa"
1687427237855," File “”/usr/local/lib/python3.9/asyncio/base_events.py"“, line 1065, in create_connection”
1687427237855, raise exceptions[0]
1687427237855," File “”/usr/local/lib/python3.9/asyncio/base_events.py"“, line 1050, in create_connection”
1687427237855, sock = await self._connect_sock(
1687427237855," File “”/usr/local/lib/python3.9/asyncio/base_events.py"“, line 961, in _connect_sock”
1687427237855," await self.sock_connect(sock, address)"
1687427237855," File “”/usr/local/lib/python3.9/asyncio/selector_events.py"“, line 500, in sock_connect”
1687427237855, return await fut
1687427237855," File “”/usr/local/lib/python3.9/asyncio/selector_events.py"“, line 535, in _sock_connect_cb”
1687427237855," raise OSError(err, f’Connect call failed {address}')"
1687427237855,“TimeoutError: [Errno 110] Connect call failed (‘199.232.26.214’, 443)”
1687427237855,The above exception was the direct cause of the following exception:
1687427237855,Traceback (most recent call last):
1687427237855," File “”/opt/collector/providers/data_source/data_source_handler.py"“, line 152, in attempt_paginated_request”
1687427237855," response = await session.request(method=method.upper(),"
1687427237855," File “”/usr/local/lib/python3.9/site-packages/aiohttp/client.py"“, line 535, in _request”
1687427237855, conn = await self._connector.connect(
1687427237855," File “”/usr/local/lib/python3.9/site-packages/aiohttp/connector.py"“, line 542, in connect”
1687427237855," proto = await self._create_connection(req, traces, timeout)"
1687427237855," File “”/usr/local/lib/python3.9/site-packages/aiohttp/connector.py"“, line 907, in _create_connection”
1687427237855," _, proto = await self._create_direct_connection(req, traces, timeout)"
1687427237855," File “”/usr/local/lib/python3.9/site-packages/aiohttp/connector.py"“, line 1206, in _create_direct_connection”
1687427237855, raise last_exc
1687427237855," File “”/usr/local/lib/python3.9/site-packages/aiohttp/connector.py"", line 1175,

in _create_direct_connection"
1687427237855," transp, proto = await self._wrap_create_connection("
1687427237855," File “”/usr/local/lib/python3.9/site-packages/aiohttp/connector.py"“, line 992, in _wrap_create_connection”
1687427237855," raise client_error(req.connection_key, exc) from exc"
1687427237855,“aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.twitch.tv:443 ssl:default [Connect call failed (‘199.232.26.214’, 443)]”
1687427237855,| File : data_source_handler.py | Function : attempt_paginated_request |

I have thoroughly reviewed relevant topic(Failed to establish a new connection: [Errno 110] Connection timed out) on the forum regarding this issue, and I can assure you that no changes have been made on our end, as the infrastructure remains the same. Could there be a possibility that Twitch is currently imposing restrictions or blocking our traffic in some manner?

Your assistance in resolving this matter would be greatly appreciated.

It’s more likely that any of the nodes between you and Twitch are having an issue.

And it’s not Tiwtch itself.

Quite commonly, for example, German/Vodafone will just give up allowing taffic between German and AWS services for whatever reason.
And thats on the ISP/provider not Twitch.

So it’s not likely Twitch are imposing restrictions is more likely your ISP/provider is having and issue or something along the chain between you and Twitch.

Or it’s DNS, or it’s caching, or it’s caching of DNS

https://twitter.com/nixcraft/status/1377751311584620545?lang=en

It’s always DNS :stuck_out_tongue:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.